File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 14
14
15
15
import json
16
16
import os
17
+ import pathlib
17
18
18
19
import boto3
19
20
import pytest
86
87
PYTORCH_RENEWED_GPU = "ml.g4dn.xlarge"
87
88
88
89
90
+ image_uris_unit_tests_dir = pathlib .Path ("tests/unit/sagemaker/image_uris" )
91
+
92
+
93
+ def pytest_collection_modifyitems (config , items ):
94
+ for item in items :
95
+ testmod = pathlib .Path (item .fspath )
96
+ if config .rootdir / image_uris_unit_tests_dir in testmod .parents :
97
+ item .add_marker (pytest .mark .image_uris_unit_test )
98
+
99
+
89
100
def pytest_addoption (parser ):
90
101
parser .addoption ("--sagemaker-client-config" , action = "store" , default = None )
91
102
parser .addoption ("--sagemaker-runtime-config" , action = "store" , default = None )
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ markers =
59
59
local_mode
60
60
slow_test
61
61
release
62
+ image_uris_unit_test
62
63
timeout: mark a test as a timeout.
63
64
64
65
[testenv]
You can’t perform that action at this time.
0 commit comments