Skip to content

Commit 05d94bc

Browse files
saravsakSKknakad
authored
Added pytest fixture (#309)
Co-authored-by: SK <saravsak@amazon.com> Co-authored-by: Karim Nakad <karimnakad@gmail.com>
1 parent 4857f4a commit 05d94bc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/integration/conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ def docker_image(docker_base_name, tag):
112112
return '{}:{}'.format(docker_base_name, tag)
113113

114114

115+
@pytest.fixture(autouse=True)
116+
def skip_py2_containers(request, tag):
117+
if request.node.get_closest_marker('skip_py2_containers'):
118+
if 'py2' in tag:
119+
pytest.skip('Skipping python2 container with tag {}'.format(tag))
120+
121+
115122
@pytest.fixture
116123
def ecr_image(account_id, docker_base_name, tag, region):
117124
return '{}.dkr.ecr.{}.amazonaws.com/{}:{}'.format(

0 commit comments

Comments
 (0)