added three tests to cover changes made by the pull request #1361 by GreenfishK · Pull Request #1645 · RDFLib/rdflib (original) (raw)
depends on how you run it, I run on my computer like this:
setup venv
\rm -rv .venv python3.8 -m venv .venv .venv/bin/python3 -m pip install -r requirements.txt -r requirements.dev.txt -r requirements.dev-extra.txt
run test with debug logging (--log-level DEBUG) and report for all tests (-rA)
.venv/bin/python3 -m pytest --log-level DEBUG -rA
But yes if you change tox.ini:
diff --git a/tox.ini b/tox.ini index c09483da..38b534b0 100644 --- a/tox.ini +++ b/tox.ini @@ -9,7 +9,7 @@ commands = {envpython} -m mypy rdflib --show-error-context --show-error-codes {envpython} setup.py clean --all {envpython} setup.py build
- {envpython} -m pytest
- {envpython} -m pytest --log-level DEBUG -rA
deps = -rrequirements.txt -rrequirements.dev.txt
Then it will do the same, and you can do the same by editing setup.cfg:
diff --git a/setup.cfg b/setup.cfg index 3e59cdf2..5990ade2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -39,9 +39,13 @@ addopts = --ignore=admin --ignore=rdflib/extras/external_graph_libs.py --ignore-glob=docs/*.py
- -rA
doctest_optionflags = ALLOW_UNICODE
filterwarnings =
ignore:Code. pytest_mock_example_attribute_that_shouldnt_exist is not defined in namespace .*:UserWarning The below warning is a consequence of how pytest doctest detects mocks and how DefinedNamespace behaves when an undefined attribute is being accessed.
ignore:Code. _pytestfixturefunction is not defined in namespace .*:UserWarning +log_cli = true +log_cli_level = "DEBUG" The below warning is a consequence of how pytest detects fixtures and how DefinedNamespace behaves when an undefined attribute is being accessed.
or run with:
PYTEST_ADDOPTS="-rA --log-level DEBUG" tox -e py37
I will add it to developers.rst when I have time.