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

Convert test/test_util.py to pytest #1795

Merged
merged 1 commit into from
Apr 12, 2022

Commits on Apr 9, 2022

  1. Convert test/test_util.py to pytest

    Fairly straight forward conversion from unittest to pytest.
    
    This also fixes some issues that were present in the old tests:
    
    - `assertTrue` was used instead of `assertEqual` inside:
      - `test_util_from_n3_expectliteralwithdatatypefromint`
      - `test_util_from_n3_expectliteralwithdatatypefrombool`
      - `test_util_from_n3_expectliteralmultiline`
      - `test_util_from_n3_expectliteralwithescapedquote`
    - `test_util_from_n3_expectliteralwithescapedquote` was not comparing
      against the right literal, but this was missed because it was using
      `assertTrue` instead of `assertEqual`
    - `test_util_from_n3_not_escapes_xf` had `("\\I")` as a value but this
      was not failing, so it has been moved to `test_util_from_n3_not_escapes`.
    aucampia committed Apr 9, 2022
    Configuration menu
    Copy the full SHA
    b00de5e View commit details
    Browse the repository at this point in the history