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

text: fix pytest config #1846

Merged
merged 1 commit into from
Apr 18, 2022

Commits on Apr 18, 2022

  1. text: fix pytest config

    pytest was using config from `tox.ini` preferentially and ignoring config
    from `setup.cfg`, as a side-effect doctests were not running on
    code/docstrings in `rdflib/`.
    
    The reason why some pytest config was in `tox.ini` instead of `setup.cfg`
    was because of these issues:
    - pypa/pip#5182
    - pytest-dev/pytest#3062
    
    As a compromise to fix this I have opted for moving all pytest config to
    `pyproject.toml`:
    - https://docs.pytest.org/en/stable/reference/customize.html#pyproject-toml
    
    This seems sensible as `pyproject.toml` is standarized by PEPs and
    eventually most things from `setup.cfg` will end up in there anyway.
    
    Also:
    - remove the pytest ignore on `test/translate_algebra` as tests in there
      have been running and passing for some time.
    - fixed path to test data in `rdflib/plugins/parsers/nquads.py`.
    aucampia committed Apr 18, 2022
    Configuration menu
    Copy the full SHA
    be32bb6 View commit details
    Browse the repository at this point in the history