Skip to content

Commit

Permalink
fix: integ test and black check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashwin Krishna committed Mar 14, 2024
1 parent e747b44 commit e68d6e5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/integ/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
from __future__ import absolute_import
from __future__ import absolute_import
9 changes: 8 additions & 1 deletion tests/integ/core/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@
import pytest
import pathlib


def pytest_configure(config):
config.addinivalue_line(
"markers", "core: subset of integ tests that must run for every pull request"
)


def pytest_collection_modifyitems(config, items):
for item in items:
if 'tests/integ/core' in str(item.fspath):
if "tests/integ/core" in str(item.fspath):
item.add_marker(pytest.mark.core)
2 changes: 1 addition & 1 deletion tests/integ/core/test_tf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

ROLE = "SageMakerRole"

RESOURCE_PATH = os.path.join(os.path.dirname(__file__), "..", "data")
RESOURCE_PATH = os.path.join(os.path.dirname(__file__), "..", "..", "data")
MNIST_RESOURCE_PATH = os.path.join(RESOURCE_PATH, "tensorflow_mnist")
TFS_RESOURCE_PATH = os.path.join(RESOURCE_PATH, "tfs", "tfs-test-entrypoint-with-handler")

Expand Down

0 comments on commit e68d6e5

Please sign in to comment.