| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
| |
This is based on examples/transitive.py
|
| | |
|
| |\
| |
| |
| |
| |
| |
| |
| |
| | |
# Conflicts:
# rdflib/namespace.py
# rdflib/parser.py
# rdflib/plugins/memory.py
# rdflib/plugins/parsers/ntriples.py
# test/test_iomemory.py
|
| | |\
| | |
| | | |
improved Graph().parse()
|
| | | | |
|
| | |/
| |
| |
| |
| |
| |
| |
| | |
Renamed Memory2 to Memory
Renamed Memory1 to SimpleMemory
Set default store to new Memory
Fixed tests
Fixed docs
|
| |/
|
|
| |
Signed-off-by: t0b3 <thomas.bettler@gmail.com>
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Add graphs when parsing, so also empty graphs are added.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
discussed in #307
Summary of changes:
* added methods ```add_graph``` and ```remove_graph``` to the Store
API, implemented these for Sleepycat and IOMemory. A flag,
```graph_awareness``` is set on the store if they methods are
supported, default implementations will raise an exception.
* made the dataset require a store with the ```graph_awareness```
flag set.
* removed the graph-state kept in the ```Dataset``` class directly.
* removed ```dataset.add_quads```, ```remove_quads``` methods. The
```add/remove``` methods of ```ConjunctiveGraph``` are smart enough
to work with triples or quads.
* removed the ```dataset.graphs``` method - it now does exactly the
same as ```contexts```
* cleaned up a bit more confusion of whether Graph instance or the
Graph identifiers are passed to store methods. (#225)
|
| | |
|
| | |
|
| |
|
|
| |
triggered by store raising ImportError
|
| | |
|
| |
|
|
| |
Test fixes.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
test.
|
| |
|
|
| |
ALTHOUGH, there is a more subtle issue here. Now we send the right accept header, but we might still get something else back, in which case we also get the mime-type of whatever it is. Whether we want to be tolerant and try to parse it as what it is, not what we asked for is another question. (Another ticket?)
|
| | |
|
| | |
|
| |
|
|
| |
top-level module names
|
| |
|
|
| |
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
|
| | |
|
| |
|