Coder Social home page Coder Social logo

example-ci's Introduction

example-ci

CI example

example-ci's People

Contributors

saskartt avatar

Watchers

 avatar

example-ci's Issues

Testing convert_fahrenheit_to_celsius fails

=================================== FAILURES ===================================
______________________ test_convert_fahrenheit_to_celsius ______________________

    def test_convert_fahrenheit_to_celsius():
        assert f2c(32) == 0
>       assert f2c(122) == pytest.approx(50)
E       assert [16](https://github.com/saskartt/example-ci/actions/runs/4562251683/jobs/8049211901#step:6:17)2.0 == 50 ± 5.0e-05
E         comparison failed
E         Obtained: 162.0
E         Expected: 50 ± 5.0e-05

test_functions.py:[19](https://github.com/saskartt/example-ci/actions/runs/4562251683/jobs/8049211901#step:6:20): AssertionError

---------- coverage: platform linux, python 3.10.10-final-0 ----------
Coverage XML written to file coverage.xml

=========================== short test summary info ============================
FAILED test_functions.py::test_convert_fahrenheit_to_celsius - assert 162.0 == 50 ± 5.0e-05
  comparison failed
  Obtained: 162.0
  Expected: 50 ± 5.0e-05
========================= 1 failed, 3 passed in 0.[25](https://github.com/saskartt/example-ci/actions/runs/4562251683/jobs/8049211901#step:6:26)s ==========================
Error: Process completed with exit code 1.

Multipication factor is 9/5, should be 5/9.

pytest test_subtract fails

=================================== FAILURES ===================================
________________________________ test_subtract _________________________________

    def test_subtract():
>       assert subtract(2, 3) == -1
E       assert 5 == -1
E        +  where 5 = subtract(2, 3)

test_functions.py:11: AssertionError

---------- coverage: platform linux, python 3.10.10-final-0 ----------
Coverage XML written to file coverage.xml

=========================== short test summary info ============================
FAILED test_functions.py::test_subtract - assert 5 == -1
 +  where 5 = subtract(2, 3)
========================= 1 failed, 1 passed in 0.05s ==========================

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.