Ignore some spurious warnings caused by pytest
pytest's behaviour causes some spurious warnings during test, this
commit configures pytest to ignore them.
@@ -36,3 +36,8 @@ addopts =
--ignore=rdflib/extras/external_graph_libs.py
--ignore-glob=docs/*.py
doctest_optionflags = ALLOW_UNICODE
+filterwarnings =
+ # 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. pytest_mock_example_attribute_that_shouldnt_exist is not defined in namespace .*:UserWarning
+ # The below warning is a consequence of how pytest detects fixtures and how DefinedNamespace behaves when an undefined attribute is being accessed.
+ ignore:Code. _pytestfixturefunction is not defined in namespace .*:UserWarning
