I am missing probably something obvious, but I do not see it.
I have the file conftest.py
in where I define a fixture:
import pytest
@pytest.fixture
def file_tests():
return "tests.json"
And then I have my test as follows (file test1.py
) in the same folder as conftest.py
:
import pytest
from seleniumbase import BaseCase
class MyTestClass(BaseCase):
def test_basics(self, file_tests):
print(file_tests)
But when I run
py.test test1.py
I get an error
E TypeError: test_basics() missing 1 required positional argument: 'file_tests'
What obvious thing am I missing?
Maybe it is "interfering" with the seleniumbase
class?