Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test_non_int.py for pytest. #1603

Merged
merged 1 commit into from
Oct 9, 2022

Commits on Oct 9, 2022

  1. Update test_non_int.py for pytest.

    Tests in test_non_int.py were not being discovered by pytest because
    the class names did not start with Test; they also had a few
    incompatibilities with pytest, which were hidden as a result of the
    tests not being run.  This commit both enables the tests to be
    discovered and updates them for pytest:
    
    - Class names are changed.
    - Dead code (FakeWrapper) is removed.
    - Non-float assert_quantity_almost_equal is fixed.
    - Parametrization, capture_log, subTests are updated for pytest.
    - kwargs/constants are updated for pytest.
    - caplog in test_quantity_creation tests for specific message.
    - Class inheritance is changed to properly run setup_class and special
      assert_quantity_almost_equal.
    cgevans committed Oct 9, 2022
    Configuration menu
    Copy the full SHA
    926d559 View commit details
    Browse the repository at this point in the history