summaryrefslogtreecommitdiff
path: root/test/test_sparql.py
Commit message (Collapse)AuthorAgeFilesLines
* Migrate from nosetest to pytestIwan Aucamp2021-10-241-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-23/+70
|
* Don't sort variables in TXTResultSerializerIwan Aucamp2021-05-141-1/+38
|
* Merge branch 'master' into sparql-speedupNicholas Car2020-12-281-3/+35
|\
| * Merge pull request #1206 from sa-bpelakh/graph-filter-queryNicholas Car2020-12-271-1/+33
| |\ | | | | | | Reset graph on exit from context
| | * slightly more standard Turtle & SPARQL syntaxNicholas Car2020-12-271-10/+10
| | |
| | * Reset graph on exit from contextBoris Pelakh2020-12-011-1/+33
| | |
| * | Serialize Changes:Ashley Sommer2020-10-081-1/+1
| |/ | | | | | | | | | | | | | | 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.
* | optimize sparql.BindingsFlorian Ludwig2020-10-231-0/+19
|/
* blacked all python filesNicholas Car2020-05-161-18/+23
|
* Add tests for update query with blank nodesNatanael Arndt2018-12-111-1/+30
| | | | | | | - check if the bnode is parsed correctly from the query - check of the bnode is serialized to ntriples correctly after an update and if it can be parsed again - add these two tests for the SPARQL store and the inmemory Graph()
* a slightly opinionated autopep8 runGunnar Aastrand Grimnes2018-10-301-1/+5
| | | | | | | | opinions is mainly: no to long lines, but not at any cost. notation3.py crashses autopep :D Also rdflib/__init__.py gets completely broken
* converted all testsGunnar Aastrand Grimnes2017-01-301-1/+1
|
* New test of expandTriplesJim McCusker2016-05-091-0/+10
|
* added test and fixed #313Gunnar Aastrand Grimnes2013-12-311-9/+47
|
* keep order of projected variables and expressions - fixes ↵Gunnar Aastrand Grimnes2013-05-031-0/+32
| | | | https://github.com/RDFLib/rdflib-sparql/issues/9
* Update issue 116eikeon2010-02-091-241/+0
| | | | Moving to rdfextra for the time being
* Fix a couple of minor merging bugs and fix some test issues, includingJohn.L.Clark2009-04-091-4/+2
| | | | updates to be stricter about when a test case reflects a known issue.
* updating module names so that they get picked up by nose; made a few small ↵eikeon2009-04-021-0/+3
| | | | fixes along the way
* annotated tests with attributes known_issue, slow, non_core and sparql to ↵eikeon2009-04-021-1/+0
| | | | make it easier to run the various groups of tests; and make the default be tests that match the following: \!known_issue,\!slow,\!non_core,\!sparql
* renaming so that nose picks it up as a test moduleeikeon2009-03-101-17/+24
|
* Adding a set of unit tests that test the first few sections of the sparqlstephen.thorne@gmail.com2009-03-091-0/+234
specification. Ideally this will be fleshed out to test each of the examples in the sparql spec.