Skip to content

Commit 0d46e44

Browse files
authored
Merge pull request #433 from c00kiemon5ter/feature-fix-tests-warnings
Fix pytest warnings about deprecated pytest_funcarg__ prefix
2 parents a490e47 + fe8f119 commit 0d46e44

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/conftest.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
import os
2+
import pytest
23

34
#TODO: On my system this function seems to be returning an incorrect location
4-
def pytest_funcarg__xmlsec(request):
5+
@pytest.fixture
6+
def xmlsec(request):
57
for path in os.environ["PATH"].split(":"):
68
fil = os.path.join(path, "xmlsec1")
79
if os.access(fil,os.X_OK):
810
return fil
911

1012
raise Exception("Can't find xmlsec1")
11-
12-
def pytest_funcarg__AVA(request):
13+
14+
@pytest.fixture
15+
def AVA(request):
1316
return [
1417
{
1518
"surName": ["Jeter"],
@@ -27,4 +30,4 @@ def pytest_funcarg__AVA(request):
2730
"surName": ["Hedberg"],
2831
"givenName": ["Roland"],
2932
},
30-
]
33+
]

0 commit comments

Comments
 (0)