From 09186850fc55f27498aec4f55a866d83481b4d93 Mon Sep 17 00:00:00 2001 From: Lukas Holecek Date: Oct 01 2019 08:22:41 +0000 Subject: [PATCH 1/2] Tests: Register custom mark to avoid deprecation warning Avoids following warning after running pytest: PytestUnknownMarkWarning: Unknown pytest.mark.smoke - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html Signed-off-by: Lukas Holecek --- diff --git a/pytest.ini b/pytest.ini index ac67151..bf8a1a5 100644 --- a/pytest.ini +++ b/pytest.ini @@ -6,3 +6,7 @@ # Disable the name-based class collection entirely # (we can still inherit from unittest.TestCase if necessary). python_classes = +# Register marks. +# See: https://docs.pytest.org/en/latest/mark.html#registering-marks +markers = + smoke: simple tests to check a new deployment From d91d2f8477c14c82661b427612d0bfc5cd087048 Mon Sep 17 00:00:00 2001 From: Lukas Holecek Date: Oct 01 2019 08:22:41 +0000 Subject: [PATCH 2/2] Tests: Ignore deprecation warning from site-packages Avoids following warning after running pytest: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working Signed-off-by: Lukas Holecek --- diff --git a/pytest.ini b/pytest.ini index bf8a1a5..0efbe70 100644 --- a/pytest.ini +++ b/pytest.ini @@ -10,3 +10,5 @@ python_classes = # See: https://docs.pytest.org/en/latest/mark.html#registering-marks markers = smoke: simple tests to check a new deployment +filterwarnings = + ignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated:DeprecationWarning