| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|\
| |
| | |
Fix JSON-LD data import adds trailing slashes to IRIs (#1443)
|
| |\
| | |
| | | |
Add two additional tests for `norm_url`
|
| |/
| |
| |
| | |
Tests suggested by @newinnovations.
|
| |\
| | |
| | | |
Add some tests for norm_url
|
| |/ |
|
| |
| |
| |
| | |
In norm_url leave url alone if it already contains a scheme/protocol.
|
|\ \
| | |
| | | |
Bump sphinx from 4.2.0 to 4.3.0
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.2.0...v4.3.0)
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
|
|\ \
| | |
| | | |
Migrate from nosetest to pytest
|
| | |
| | |
| | |
| | |
| | |
| | | |
Errors were being piped to true, but that will fail if it runs with
pipefail. The better option is to do `black ... || true` which will work
for ignoring errors even with pipefail.
|
| | |
| | |
| | |
| | |
| | | |
This is so that it works properly on MacOS which does not permit
listening on random loopback addresses for user processes.
|
| | | |
|
| | |
| | |
| | |
| | | |
Skipping was done incorrectly and failed on Windows.
|
| | |
| | |
| | |
| | |
| | | |
pytest's behaviour causes some spurious warnings during test, this
commit configures pytest to ignore them.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This eliminates this warning:
```
.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)
```
By adding PYTEST_DONT_REWRITE to the plugin module docstring.
|
| | |
| | |
| | |
| | |
| | | |
- Removed unused ignores.
- Use official description text of RDFLib in DOAP used in EARL report.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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 import of os
|
| | |
|
|/
|
|
|
|
|
|
| |
File "../test_magic_set.py", line 64, in test_AdornLiteral
res = translateAlgebra(translateQuery(parsed_query))
File ".../rdflib/plugins/sparql/algebra.py", line 1427, in translateAlgebra
os.remove("query.txt")
name 'os' is not defined
|
|\
| |
| | |
replace pkg_resources with importlib.metadata
|
| |\
| | |
| | | |
Use version conditional imports to accomodate mypy
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This will eliminate these errors:
```
+ mypy --show-error-context --show-error-codes rdflib
rdflib/plugin.py:114: error: Module "importlib.metadata" has no attribute "entry_points" [attr-defined]
rdflib/plugins/sparql/__init__.py:44: error: Module "importlib.metadata" has no attribute "entry_points" [attr-defined]
Found 2 errors in 2 files (checked 110 source files)
```
|
| | |
|
|\ \
| | |
| | | |
A new Turtle serializer
|
| |\ \
| |/ /
|/| | |
|
|\ \ \
| | | |
| | | | |
Fix typos discovered by codespell
|
| | |/
| |/| |
|
|\ \ \
| |/ /
|/| | |
Use assertTrue instead of assert_ for python 3.11 compatibility.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Undefined name: tmppath --> self.tmppath
|
| |/ / |
|
|\ \ \
| |/ /
|/| | |
Fix Graph.parse URL handling on windows
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Using `pathlib.Path("http://example.com/").exists()` on windows causes an exception as a URL
is not a valid path, while `os.path.exists("http://example.com/")` just
returns false.
This patch reverts _create_input_source_from_location to using
`os.path.exists()` instead of pathlib.Path to make it possible to parse
graphs from http URLs on windows.
|
| |
| |
| | |
Fixes #1431
|
| |
| |
| |
| | |
releases. (#1434)
|
|\ \
| | |
| | | |
Export DCMITYPE
|
|/ /
| |
| |
| |
| | |
Not sure what went wrong here but for some reason master branch tries to
export DCMITYPE without also importing it.
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
rename arg LOVE to ns in rdfpipe
|
| | | |
|
|\ \ \
| |/ /
|/| | |
Add owl:rational and owl:real to match standard.
|