URL: https://github.com/SSSD/sssd/pull/725
Author: jhrozek
 Title: #725: MULTIHOST: Do not use the deprecated namespace
Action: opened

PR body:
"""
This issue was causing warnings with the current pytest versions as 
installed from pip.

See: https://docs.pytest.org/en/latest/deprecations.html#pytest-namespace
"""

To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/725/head:pr725
git checkout pr725
From 3b8d4b8baa4901be91a9c7ecfb62a556f260b6ae Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhro...@redhat.com>
Date: Tue, 27 Nov 2018 11:39:18 +0100
Subject: [PATCH] MULTIHOST: Do not use the deprecated namespace

This issue was causing warnings with the current pytest versions as
installed from pip.

See:
https://docs.pytest.org/en/latest/deprecations.html#pytest-namespace
---
 src/tests/multihost/basic/conftest.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/tests/multihost/basic/conftest.py b/src/tests/multihost/basic/conftest.py
index 65e2d641b..a9e9cf0a6 100644
--- a/src/tests/multihost/basic/conftest.py
+++ b/src/tests/multihost/basic/conftest.py
@@ -17,13 +17,13 @@
 import ldap
 
 
-def pytest_namespace():
-    return {'num_masters': 1,
-            'num_ad': 0,
-            'num_atomic': 0,
-            'num_replicas': 0,
-            'num_clients': 0,
-            'num_others': 0}
+def pytest_configure():
+    pytest.num_masters = 1
+    pytest.num_ad = 0
+    pytest.num_atomic = 0
+    pytest.num_replicas = 0
+    pytest.num_clients = 0
+    pytest.num_others = 0
 
 
 @pytest.fixture(scope="class")
_______________________________________________
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/sssd-devel@lists.fedorahosted.org

Reply via email to