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

test: add python variants to variant based tests #2544

Merged

Conversation

aucampia
Copy link
Member

Summary of changes

This change adds python based variants to the variant tests. The python based variants provide a populate_graph function that populates a passed graph with quads or triples. This provides for the ability to do more nuanced and narrow tests using variants.

Other changes:

  • Add some more variants for diverse_quads that explicitly sets the datatype of strings.
  • Removed the hand coded simple_triple graph from test/data.py as this is now subsumed by test/data/variants/simple_triple.py.

Checklist

  • Checked that there aren't other open pull requests for
    the same change.
  • Checked that all tests and type checking passes.
  • Considered granting push permissions to the PR branch,
    so maintainers can fix minor issues and keep your PR up to date.

This change adds python based variants to the variant tests. The python
based variants provide a `populate_graph` function that populates a
passed graph with quads or triples. This provides for the ability to do
more nuanced and narrow tests using variants.

Other changes:

- Add some more variants for `diverse_quads` that explicitly sets the
  datatype of strings.
- Removed the hand coded `simple_triple` graph from `test/data.py` as
  this is now subsumed by `test/data/variants/simple_triple.py`.
@aucampia aucampia force-pushed the aucampia/20230825T2102-python-variants branch from fd95205 to f09b3ea Compare August 25, 2023 20:19
@aucampia aucampia added review wanted This indicates that the PR is ready for review ready to merge The PR will be merged soon if no further feedback is provided. labels Aug 25, 2023
@aucampia aucampia requested a review from a team August 25, 2023 20:33
@coveralls
Copy link

Coverage Status

coverage: 90.935%. remained the same when pulling f09b3ea on aucampia:aucampia/20230825T2102-python-variants into 5b02406 on RDFLib:main.

@aucampia aucampia merged commit e757687 into RDFLib:main Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge The PR will be merged soon if no further feedback is provided. review wanted This indicates that the PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants