summaryrefslogtreecommitdiff
path: root/test/test_canonicalization.py
Commit message (Collapse)AuthorAgeFilesLines
* Migrate from nosetest to pytestIwan Aucamp2021-10-241-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add unit tests for issue #1294 with @expectedFailureIwan Aucamp2021-07-131-0/+60
| | | | | Also add type annotations to rdflib.compare to make it easier to understand the code.
* Merge remote-tracking branch 'origin/master' into t0b3_masterAshley Sommer2020-08-271-2/+2
|\ | | | | | | | | | | | | | | | | # Conflicts: # rdflib/namespace.py # rdflib/parser.py # rdflib/plugins/memory.py # rdflib/plugins/parsers/ntriples.py # test/test_iomemory.py
| * Removed IOMemory storeAshley Sommer2020-08-191-2/+2
| | | | | | | | | | | | | | | | Renamed Memory2 to Memory Renamed Memory1 to SimpleMemory Set default store to new Memory Fixed tests Fixed docs
* | 2to3 whole sourcebaset0b32020-06-221-39/+39
|/ | | | Signed-off-by: t0b3 <thomas.bettler@gmail.com>
* blacked all python filesNicholas Car2020-05-161-197/+238
|
* removal of all uses of package sixNicholas Car2020-05-161-15/+14
|
* a slightly opinionated autopep8 runGunnar Aastrand Grimnes2018-10-301-36/+40
| | | | | | | | opinions is mainly: no to long lines, but not at any cost. notation3.py crashses autopep :D Also rdflib/__init__.py gets completely broken
* some merging cleanupJoern Hees2017-04-091-125/+65
|
* Merge remote-tracking branch 'upstream/pull/730' into fix_canonicalizationJoern Hees2017-04-091-0/+127
|\ | | | | | | | | | | * upstream/pull/730: Removed extraneous debug statements. Fixed #725 by fully refining all bnode colors and combining color groups if there is a hash collision.
| * Merge branch 'master' into issue725Jim McCusker2017-04-091-1/+34
| |\
| * | Fixed #725 by fully refining all bnode colors and combining color groups if ↵Jim McCusker2017-04-091-0/+125
| | | | | | | | | | | | there is a hash collision.
* | | test for issue #725: canonicalization collapses BNodesJoern Hees2017-03-301-12/+122
| |/ |/|
* | removed prints from test outputJörn Hees2017-02-171-3/+0
| |
* | Added test for Issue 682 and fixed.Jim McCusker2017-02-161-1/+35
|/
* 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-31/+32
|
* Fixed bnode collision bug.Jim McCusker2015-08-091-0/+2
|
* test for #494 (canonicalization sometimes collapses BNodes)Joern Hees2015-07-131-4/+103
|
* added benchmark and related instrumentationJim McCusker2014-11-181-4/+9
|
* First pass at a traces implementation, not full pruning yetJim McCusker2014-11-151-0/+146