summaryrefslogtreecommitdiff
path: root/test/test_trig.py
Commit message (Collapse)AuthorAgeFilesLines
* Migrate from nosetest to pytestIwan Aucamp2021-10-241-2/+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.
* blacked everything6.0.0Nicholas Car2021-07-201-2/+4
|
* Merge branch 'master' into hsolbrig/masterEdmond Chuc2021-07-081-14/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # rdflib/__init__.py # rdflib/compat.py # rdflib/namespace/__init__.py # rdflib/plugins/parsers/rdfxml.py # rdflib/plugins/serializers/rdfxml.py # rdflib/tools/csv2rdf.py # test/test_dawg.py # test/test_namespace.py # test/test_nt_misc.py # test/test_rdfxml.py # test/test_seq.py # test/test_trig.py # test/testutils.py
| * Serialize Changes:Ashley Sommer2020-10-081-9/+9
| | | | | | | | | | | | | | | | 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-8/+8
| | | | | | | | Signed-off-by: t0b3 <thomas.bettler@gmail.com>
* | Refactor - module names don't match class nameshsolbrig2020-05-261-6/+5
|/ | | | | For some reason the sequence of processing is different in Travis than in PyCharm. Changing the module names eliminates any possibility of confusion. Also fixed a number of warnings, whines and general unhappiness in the build process.
* blacked all python filesNicholas Car2020-05-161-56/+57
|
* removal of all uses of package sixNicholas Car2020-05-161-9/+8
|
* a slightly opinionated autopep8 runGunnar Aastrand Grimnes2018-10-301-24/+25
| | | | | | | | 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.
* fixes for turtle/trig namespace handlingGunnar Aastrand Grimnes2017-01-241-5/+6
| | | | | | | | raise exception when trying to rebind a prefix to another ns. fix broken rebinding when generating prefixes This fixes #679 - but actually it's more like a work-around. The underlying problem is confusion about context and graph objects (#167)
* skip round-trip test, unfixable until 5.0Gunnar Aastrand Grimnes2017-01-241-0/+3
|
* prefix test for #428Gunnar Aastrand Grimnes2017-01-241-0/+22
|
* Added additional trig unit tests to highlight some currently occurring issues.Dave Challis2017-01-241-1/+70
|
* updating deprecated testing syntax (#697)Nate Prewitt2017-01-241-7/+7
|
* don't use assertIn; not supported in py2.6Drew Perttula2015-03-311-4/+4
|
* serialize bnode graph ids in trig correctlyDrew Perttula2015-03-311-16/+17
|
* fix string types for py3Drew Perttula2015-03-311-4/+4
|
* trig serializer corrections to graph label outputDrew Perttula2015-03-291-0/+20
| | | | | Before: "<short:name> {...}" and "<None> {...}" After: "short:name {...}" and "<http://actual/uri/here> {...}"
* trig serializer wasn't including a @prefix line for the first graph's prefixDrew Perttula2015-03-291-0/+15
|
* clean up turtle parser a bit, fix repeat subjects in trig parserGunnar Aastrand Grimnes2013-07-301-15/+16
| | | | | | this fixes the bug reporting in #317 also removed redundant trig test.
* fix tests when no bsddb available, fix py3 testsGunnar Aastrand Grimnes2013-04-261-2/+2
|
* fix for trig serializer with triples in wrong graph. Fixes #262.Gunnar Aastrand Grimnes2013-04-261-1/+20
|
* test fix for py3gromgull2013-03-111-1/+3
|
* fixed trig bug with repeat triples in various graphsgromgull2013-03-111-2/+15
|
* added trig serializergromgull2011-08-191-0/+13