Merge pull request #433 from c00kiemon5ter/feature-fix-tests-warnings
Fix pytest warnings about deprecated pytest_funcarg__ prefix
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
import os
|
import os
|
||||||
|
import pytest
|
||||||
|
|
||||||
#TODO: On my system this function seems to be returning an incorrect location
|
#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(":"):
|
for path in os.environ["PATH"].split(":"):
|
||||||
fil = os.path.join(path, "xmlsec1")
|
fil = os.path.join(path, "xmlsec1")
|
||||||
if os.access(fil,os.X_OK):
|
if os.access(fil,os.X_OK):
|
||||||
@@ -9,7 +11,8 @@ def pytest_funcarg__xmlsec(request):
|
|||||||
|
|
||||||
raise Exception("Can't find xmlsec1")
|
raise Exception("Can't find xmlsec1")
|
||||||
|
|
||||||
def pytest_funcarg__AVA(request):
|
@pytest.fixture
|
||||||
|
def AVA(request):
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
"surName": ["Jeter"],
|
"surName": ["Jeter"],
|
||||||
|
Reference in New Issue
Block a user