summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorRoland Hedberg <roland@catalogix.se>2017-10-11 08:32:10 +0200
committerGitHub <noreply@github.com>2017-10-11 08:32:10 +0200
commitb71f1443991c94099ff49226c92b8671d657fade (patch)
tree69cb8fb94681a3273d1fe995e0e79bb047d307cf /tests/conftest.py
parent546f9d4ca82c8b4ae5cf7aa0fb80f0bedf385c89 (diff)
parent9e6ddc0030828a17fe44a3ecdc5c95b6b6c8d741 (diff)
downloadpysaml2-b71f1443991c94099ff49226c92b8671d657fade.tar.gz
Merge branch 'master' into master
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 3a895627..5048394c 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,15 +1,18 @@
import os
+import pytest
#TODO: On my system this function seems to be returning an incorrect location
-def pytest_funcarg__xmlsec(request):
+@pytest.fixture
+def xmlsec(request):
for path in os.environ["PATH"].split(":"):
fil = os.path.join(path, "xmlsec1")
if os.access(fil,os.X_OK):
return fil
raise Exception("Can't find xmlsec1")
-
-def pytest_funcarg__AVA(request):
+
+@pytest.fixture
+def AVA(request):
return [
{
"surName": ["Jeter"],
@@ -27,4 +30,4 @@ def pytest_funcarg__AVA(request):
"surName": ["Hedberg"],
"givenName": ["Roland"],
},
- ]
+ ]