summaryrefslogtreecommitdiff
path: root/test/test_extras
Commit message (Collapse)AuthorAgeFilesLines
* test: add `webtest` marker to tests that use the internet (#2295)Iwan Aucamp2023-03-212-0/+4
| | | | | | | | | | | This is being done so that it is easier for downstream packagers to run the test suite without requiring internet access. To run only tests that does not use the internet, run `pytest -m "not webtest"`. The validation workflow validates that test run without internet access by running the tests inside `firejail --net=none`. - Closes <https://github.com/RDFLib/rdflib/issues/2293>.
* build(deps-dev): bump black from 22.12.0 to 23.1.0 (#2248)dependabot[bot]2023-03-1115-48/+0
|
* fix: InfixOWL: eliminate use of mutable data structures in args (#2033)Graham Higgins2022-07-181-1/+6
| | | | | | | | | | | | | | | Maintenance-positive changes recommended by [flake8-bugbear](https://pypi.org/project/flake8-bugbear/), mostly explicitly indicating unused loop variables with a prefixing underscore (it identified one case where _none_ of the loop variables were being used) and a couple of don't-use-mutable-objects-as-args instances. 1. Added leading underscore to unused loop variables, removed mutable objects from args, (replacing with None and then performing an explicit “if None” assignment in the body of the method). 2. Swapped out an excessively weak, coverage-motivated length test of __hash__() (which was causing intermittent test failures) for an equality test of two runs, fixes issue #2030
* fix: InfixOWL fixes and cleanup (#2024)Graham Higgins2022-07-174-401/+212
| | | | | | | | | | | | | | | | | | | | | - InfixOWL fixes and cleanup. [PR #2024](https://github.com/RDFLib/rdflib/pull/2024). - `rdflib.extras.infixowl.Restriction.__init__` will now raise a `ValueError` if there is no restriction value instead of an `AssertionError`. - Fixed numerous issues with `rdflib.extras.infixowl.Restriction.restrictionKind` which was essentially not working at all. - Fixed how `rdflib.extras.infixowl.Property.__repr__` uses `rdflib.namespace.OWL`. - Removed `rdflib.extras.infixowl.Infix.__ror__` and `rdflib.extras.infixowl.Infix.__or__` as they were broken. - Removed unused `rdflib.extras.infixowl.termDeletionDecorator`. - Added `rdflib.extras.infixowl.MalformedClassError` which will replace `rdflib.extras.infixowl.MalformedClass` (which is an exception) in the next major version. Final stage of update to InfixOWL, removing unused code, tidying, adding some docu-comments, minor improvements in robustness, updating previously-failing tests, adding more tests. Expanded documentation to follow. Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
* Continuation of infixowl update and coverage improvement (#2001)Graham Higgins2022-07-131-13/+5
| | | Update of infixowl including a couple of minor run-time changes to avoid exceptions currently xfailing.
* Infixowl cleanup (#1996)Graham Higgins2022-06-2316-418/+2644
| | | Whitespace gardening for `rdflb/extras/infixowl.py` and additional tests.
* Merge remote-tracking branch 'upstream/master' into test-reorgIwan Aucamp2022-04-172-9/+12
|
* test re-orgGraham Higgins2022-04-162-0/+504