summaryrefslogtreecommitdiff
path: root/test/test_turtle_serialize.py
Commit message (Collapse)AuthorAgeFilesLines
* Migrate from nosetest to pytestIwan Aucamp2021-10-241-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch replace all uses of nose with pytest. It also includes a pytest plugin for creating EARL reports for tests with a `rdf_test_uri` parameter. Some caveats: - HTML report directory is now htmlcov instead of coverage - There is some warning related to the EARL reporting plugin which I can't quite figure out: ``` .venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676 /home/iwana/sw/d/github.com/iafork/rdflib/.venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: test.earl self.import_plugin(import_spec) ``` This is not causing any problems as far as I can tell, but still annoying. - python setup.py test won't work anymore, I can make it work but this is not advised by pytest: https://github.com/pytest-dev/pytest-runner/#deprecation-notice - run_test.py is still there but it's not really referenced anymore from anywhere and the options it accepts are completely different as it's options were based on nose. I would say it should be removed entirely but for now it is basically just a wrapper around pytest that basically does nothing. - Removed references to test attributes as currently they are not being used anywhere anyway, I guess we can add them back if there is some use for them later. - A lot of tests are still marked to skip when really they should be marked with xfail. This is also affecting the RDFT test manifests and result in reports saying tests are skipped when really we know they will fail and they are only skipped for this reason. But there is no change here from before, and pytest makes it easier to dynamically do expected failures. Special thanks to Wes Turner for his advice and inputs on this process.
* Fix spellingfredrik-aschehoug2021-03-141-3/+3
|
* reorderfredrik-aschehoug2021-03-141-4/+4
|
* Cleanup testfredrik-aschehoug2021-03-141-2/+0
|
* Allow paranthesesfredrik-aschehoug2021-03-141-1/+11
|
* Added tests for testing correct behaviour of compute_qname for URNs, and ↵Amade Nemes2021-03-081-1/+11
| | | | relatedly for correct turtle serialization of URNs
* Serialize Changes:Ashley Sommer2020-10-081-3/+3
| | | | | | | | 1) Change default format from 'xml' to 'turtle' 2) If destination is None and encoding is None, output a str, not bytes 3) Add a new convenience method to print the Graph contents (turtle by default) Lots of fixes in tests to adapt to these changes (serialize is used a lot to check graph state in tests). Blacked files which were involved in this change.
* 2to3 whole sourcebaset0b32020-06-221-4/+4
| | | | Signed-off-by: t0b3 <thomas.bettler@gmail.com>
* blacked all python filesNicholas Car2020-05-161-22/+33
|
* removal of all uses of package sixNicholas Car2020-05-161-2/+1
|
* test_turtle_serialize.py add testsTom Gillespie2020-03-121-0/+3
| | | | | test for longest substring check if split_uri produced an exact prefix
* tst: added test for the use casesSatrajit Ghosh2020-03-121-0/+15
|
* a slightly opinionated autopep8 runGunnar Aastrand Grimnes2018-10-301-3/+4
| | | | | | | | opinions is mainly: no to long lines, but not at any cost. notation3.py crashses autopep :D Also rdflib/__init__.py gets completely broken
* removed most of the six import from py3compatGunnar Aastrand Grimnes2017-01-301-1/+1
| | | | now six is used throughout.
* converted all testsGunnar Aastrand Grimnes2017-01-301-2/+2
|
* Fix TurtleSerializer.isValidList failure on falsy valuesNiklas Lindström2016-08-041-1/+15
|
* Correctly handle \u in Notation 3 files.Rory McCann2014-09-131-0/+16
| | | | It was using case insensitive regex, so it was mistaking \u and \U.
* Test boolean list serialization in TurtleBenjamin Cogrel2014-04-271-3/+29
|
* another py3 test fixGunnar Aastrand Grimnes2013-05-151-1/+2
|
* no final dot in turtle qnames, fixes #282Gunnar Aastrand Grimnes2013-05-151-0/+18