summaryrefslogtreecommitdiff
path: root/test/test_finalnewline.py
Commit message (Collapse)AuthorAgeFilesLines
* Migrate from nosetest to pytestIwan Aucamp2021-10-241-9/+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-1/+1
|
* remove bad doctest declarations that are no longer required, were causing ↵Ashley Sommer2021-07-091-0/+2
| | | | subsequent tests to fail
* Serialize Changes:Ashley Sommer2020-10-081-2/+2
| | | | | | | | 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.
* blacked all python filesNicholas Car2020-05-161-5/+9
|
* removal of all uses of package sixNicholas Car2020-05-161-4/+2
|
* a slightly opinionated autopep8 runGunnar Aastrand Grimnes2018-10-301-4/+6
| | | | | | | | opinions is mainly: no to long lines, but not at any cost. notation3.py crashses autopep :D Also rdflib/__init__.py gets completely broken
* cleanup test-skippingGunnar Aastrand Grimnes2018-10-301-6/+0
| | | | mainly remove old skips for pypy/java
* removed most of the six import from py3compatGunnar Aastrand Grimnes2017-01-301-2/+2
| | | | now six is used throughout.
* mimetype for trix, dont double-test parsers/serializers registered twice - ↵gromgull2013-05-081-7/+6
| | | | related to #277
* Fixing tests wrt. multiply registered parsers and serializersUrs Holzer2013-05-071-1/+1
|
* more test cleanups - test all storesGunnar Aastrand Grimnes2012-07-221-0/+38