Skip to content

Commit 83bb77a

Browse files
authored
add missing fixtures (#316)
1 parent 2ec9136 commit 83bb77a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/integration/conftest.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,20 @@ def instance_type(request, processor):
9292
return provided_instance_type if provided_instance_type is not None else default_instance_type
9393

9494

95+
@pytest.fixture()
96+
def py_version():
97+
if 'TEST_PY_VERSIONS' in os.environ:
98+
return os.environ['TEST_PY_VERSIONS'].split(',')
99+
return None
100+
101+
102+
@pytest.fixture()
103+
def processor():
104+
if 'TEST_PROCESSORS' in os.environ:
105+
return os.environ['TEST_PROCESSORS'].split(',')
106+
return None
107+
108+
95109
@pytest.fixture(autouse=True)
96110
def skip_by_device_type(request, processor):
97111
is_gpu = (processor == 'gpu')

0 commit comments

Comments
 (0)