diff options
author | Iwan Aucamp <aucampia@gmail.com> | 2023-03-21 22:31:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-21 22:31:52 +0100 |
commit | cfe6e378e6b0aff106f6baf3b5d82adbeb547236 (patch) | |
tree | 8ee96e40a364d0dac746ab0a4ebcff4c1093882c /test/test_extras/test_infixowl/test_basic.py | |
parent | adf8eb2ec7de879fd4abb17f004796bd32ec8938 (diff) | |
download | rdflib-cfe6e378e6b0aff106f6baf3b5d82adbeb547236.tar.gz |
test: add `webtest` marker to tests that use the internet (#2295)
This is being done so that it is easier for downstream packagers to run the test
suite without requiring internet access.
To run only tests that does not use the internet, run `pytest -m "not webtest"`.
The validation workflow validates that test run without internet access by
running the tests inside `firejail --net=none`.
- Closes <https://github.com/RDFLib/rdflib/issues/2293>.
Diffstat (limited to 'test/test_extras/test_infixowl/test_basic.py')
-rw-r--r-- | test/test_extras/test_infixowl/test_basic.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_extras/test_infixowl/test_basic.py b/test/test_extras/test_infixowl/test_basic.py index 139238ba..af954549 100644 --- a/test/test_extras/test_infixowl/test_basic.py +++ b/test/test_extras/test_infixowl/test_basic.py @@ -1,5 +1,7 @@ from test.data import context0 +import pytest + from rdflib import OWL, Graph, Literal, Namespace from rdflib.extras.infixowl import ( Class, @@ -79,6 +81,7 @@ def test_infixowl_serialization(): ) +@pytest.mark.webtest def test_infix_owl_example1(): g = Graph(identifier=context0) g.bind("ex", EXNS) |