Code: Select all
import pytest
@pytest.fixture
def file_tests():
return "tests.json"
Code: Select all
import pytest
from seleniumbase import BaseCase
class MyTestClass(BaseCase):
def test_basics(self, file_tests):
print(file_tests)
< /code>
Aber wenn ich < /p>
ausführepy.test test1.py
< /code>
Ich erhalte einen Fehler < /p>
E TypeError: test_basics() missing 1 required positional argument: 'file_tests'