GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: updates so tests can run in different environments (#1403) · googleapis/python-aiplatform@15fe100

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tests/unit/aiplatform
    • test_explain_saved_model_metadata_builder_tf1_test.py
    • test_explain_saved_model_metadata_builder_tf2_test.py
    • test_training_jobs.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tests/unit/aiplatform/test_explain_saved_model_metadata_builder_tf1_test.py‎

Copy file name to clipboardExpand all lines: tests/unit/aiplatform/test_explain_saved_model_metadata_builder_tf1_test.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from test_models import upload_model_mock, get_model_mock # noqa: F401
2727

2828

29+
@pytest.mark.usefixtures("google_auth_mock")
2930
class SavedModelMetadataBuilderTF1Test(tf.test.TestCase):
3031
def _set_up(self):
3132
self.sess = tf.Session(graph=tf.Graph())
Collapse file

‎tests/unit/aiplatform/test_explain_saved_model_metadata_builder_tf2_test.py‎

Copy file name to clipboardExpand all lines: tests/unit/aiplatform/test_explain_saved_model_metadata_builder_tf2_test.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from test_models import upload_model_mock, get_model_mock # noqa: F401
2828

2929

30+
@pytest.mark.usefixtures("google_auth_mock")
3031
class SavedModelMetadataBuilderTF2Test(tf.test.TestCase):
3132
def _set_up_sequential(self):
3233
# Set up for the sequential.
Collapse file

‎tests/unit/aiplatform/test_training_jobs.py‎

Copy file name to clipboardExpand all lines: tests/unit/aiplatform/test_training_jobs.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ def mock_get_backing_custom_job_with_enable_web_access():
330330
yield get_custom_job_mock
331331

332332

333+
@pytest.mark.skipif(
334+
sys.executable is None, reason="requires python path to invoke subprocess"
335+
)
333336
@pytest.mark.usefixtures("google_auth_mock")
334337
class TestTrainingScriptPythonPackagerHelpers:
335338
def setup_method(self):
@@ -446,6 +449,9 @@ def test_get_python_executable_returns_python_executable(self):
446449
assert "python" in source_utils._get_python_executable().lower()
447450

448451

452+
@pytest.mark.skipif(
453+
sys.executable is None, reason="requires python path to invoke subprocess"
454+
)
449455
@pytest.mark.usefixtures("google_auth_mock")
450456
class TestTrainingScriptPythonPackager:
451457
def setup_method(self):

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.