summaryrefslogtreecommitdiff
path: root/test/test_w3c_spec/test_n3_w3c.py
Commit message (Collapse)AuthorAgeFilesLines
* test: Eliminate flake8 errors in tests (#2353)Iwan Aucamp2023-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | Eliminate some occurrences of the following flake8 errors in tests: * E265 block comment should start with '# ' * E266 too many leading '#' for block comment * E402 module level import not at top of file * E712 comparison to False should be 'if cond is False:' or 'if not cond:' * E712 comparison to True should be 'if cond is True:' or 'if cond:' * E722 do not use bare 'except' * F401 ... imported but unused * F403 ... used; unable to detect undefined names * F405 ... may be undefined, or defined from star imports: ... * F541 f-string is missing placeholders * F841 local variable 'result' is assigned to but never used * N806 variable 'TEST_DIR' in function should be lowercase This is pursuant to eliminating [flakeheaven](https://github.com/flakeheaven/flakeheaven), as it no longer supports the latest version of flake8 [[ref](https://github.com/flakeheaven/flakeheaven/issues/132)].
* build(deps-dev): bump black from 22.12.0 to 23.1.0 (#2248)dependabot[bot]2023-03-111-1/+0
|
* test: remove unused imports in test codeIwan Aucamp2022-05-171-3/+2
| | | | | | | | | | This patch removes unused imports in test code. This is mainly to remove the potential snag for flake8/flakeheaven. The actual cleanup was done with `pycln --all test`. Also: - Remove superflous `pass` statements.
* test: move `EARL` and `RDFT` namespaces to separate filesIwan Aucamp2022-05-151-1/+2
| | | | | | | This patch moves the `RDFT` and `EARL` namespaces into their own files. This is to make the test code a bit cleaner to work with. Doing this in preperation for rewrite of the RDF/XML test suite.
* Revert to upstream manifestIwan Aucamp2022-05-121-2/+13
| | | | | | | | | Change `test/data/suites/w3c/n3/manifest.ttl` to the upstream version of this file and workaround issues in it using in `test/test_w3c_spec/test_n3_w3c.py` by manually specyfing manifests. The issue in the upstream manifest is tracked in: - https://github.com/w3c/N3/issues/98
* Add n3 test suite runnerGraham Higgins2022-05-121-0/+134
Changed the content of the (unused) `test/data/suites/n3` (which isn't an element of the published [W3C RDF test suite](https://github.com/w3c/rdf-tests)) to that of the [W3C N3 test suite](https://github.com/w3c/N3/tree/master/tests) because it's an updated version of the same test suite, cloned `test_turtle_w3c.py` as `test_n3_w3c.py`, adjusted it to run and added the failures as a *pro tem* internal, marked-as-xfail "skiplist". Also: - Added a couple of TurtleTest URIRefs to test/manifest.py