Skip to content

Commit

Permalink
diable all custom dependencies tests from docker
Browse files Browse the repository at this point in the history
  • Loading branch information
agunapal authored and namannandan committed Feb 16, 2024
1 parent 89129cd commit 4886fea
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions test/pytest/test_model_custom_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ def register_model_and_make_inference_request(expect_model_load_failure=False):
resp.raise_for_status()


@pytest.mark.skipif(
os.environ.get("TS_RUN_IN_DOCKER", False),
reason="Test to be run outside docker",
)
def test_install_dependencies_to_target_directory_with_requirements():
# Torchserve cleanup
test_utils.stop_torchserve()
Expand All @@ -167,6 +171,10 @@ def test_install_dependencies_to_target_directory_with_requirements():
test_utils.delete_all_snapshots()


@pytest.mark.skipif(
os.environ.get("TS_RUN_IN_DOCKER", False),
reason="Test to be run outside docker",
)
def test_install_dependencies_to_target_directory_without_requirements():
# Torchserve cleanup
test_utils.stop_torchserve()
Expand All @@ -193,6 +201,10 @@ def test_install_dependencies_to_target_directory_without_requirements():
test_utils.delete_all_snapshots()


@pytest.mark.skipif(
os.environ.get("TS_RUN_IN_DOCKER", False),
reason="Test to be run outside docker",
)
def test_disable_install_dependencies_to_target_directory_with_requirements():
# Torchserve cleanup
test_utils.stop_torchserve()
Expand All @@ -212,6 +224,10 @@ def test_disable_install_dependencies_to_target_directory_with_requirements():
test_utils.delete_all_snapshots()


@pytest.mark.skipif(
os.environ.get("TS_RUN_IN_DOCKER", False),
reason="Test to be run outside docker",
)
def test_disable_install_dependencies_to_target_directory_without_requirements():
# Torchserve cleanup
test_utils.stop_torchserve()
Expand Down Expand Up @@ -261,6 +277,10 @@ def test_install_dependencies_to_venv_with_requirements():
test_utils.delete_all_snapshots()


@pytest.mark.skipif(
os.environ.get("TS_RUN_IN_DOCKER", False),
reason="Test to be run outside docker",
)
def test_install_dependencies_to_venv_without_requirements():
# Torchserve cleanup
test_utils.stop_torchserve()
Expand All @@ -287,6 +307,10 @@ def test_install_dependencies_to_venv_without_requirements():
test_utils.delete_all_snapshots()


@pytest.mark.skipif(
os.environ.get("TS_RUN_IN_DOCKER", False),
reason="Test to be run outside docker",
)
def test_disable_install_dependencies_to_venv_with_requirements():
# Torchserve cleanup
test_utils.stop_torchserve()
Expand All @@ -306,6 +330,10 @@ def test_disable_install_dependencies_to_venv_with_requirements():
test_utils.delete_all_snapshots()


@pytest.mark.skipif(
os.environ.get("TS_RUN_IN_DOCKER", False),
reason="Test to be run outside docker",
)
def test_disable_install_dependencies_to_venv_without_requirements():
# Torchserve cleanup
test_utils.stop_torchserve()
Expand Down

0 comments on commit 4886fea

Please sign in to comment.