GeezerVison is showing github.com — fix: rename teardown fixture (#1004) · jplanders/python-aiplatform@fcd0096
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: tests/system/aiplatform/e2e_base.py +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -124,11 +124,13 @@ def delete_bigquery_dataset(self, shared_state: Dict[str, Any]): |
124 | 124 | ) # Make an API request. |
125 | 125 |
|
126 | 126 | @pytest.fixture(scope="class", autouse=True) |
127 | | - def teardown(self, shared_state: Dict[str, Any]): |
| 127 | + def tear_down_resources(self, shared_state: Dict[str, Any]): |
128 | 128 | """Delete every Vertex AI resource created during test""" |
129 | 129 |
|
130 | 130 | yield |
131 | 131 |
|
| 132 | + # TODO(b/218310362): Add resource deletion system tests |
| 133 | + |
132 | 134 | # Bring all Endpoints to the front of the list |
133 | 135 | # Ensures Models are undeployed first before we attempt deletion |
134 | 136 | shared_state["resources"].sort( |
|
Collapse file
Copy file name to clipboardExpand all lines: tests/system/aiplatform/test_e2e_tabular.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
46 | 46 | } |
47 | 47 |
|
48 | 48 |
|
49 | | -@pytest.mark.usefixtures("prepare_staging_bucket", "delete_staging_bucket", "teardown") |
| 49 | +@pytest.mark.usefixtures("prepare_staging_bucket", "delete_staging_bucket") |
50 | 50 | class TestEndToEndTabular(e2e_base.TestEndToEnd): |
51 | 51 | """End to end system test of the Vertex SDK with tabular data adapted from |
52 | 52 | reference notebook http://shortn/_eyoNx3SN0X""" |
|
Collapse file
Copy file name to clipboardExpand all lines: tests/system/aiplatform/test_model_upload.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
32 | 32 | _XGBOOST_MODEL_URI = "gs://cloud-samples-data-us-central1/vertex-ai/google-cloud-aiplatform-ci-artifacts/models/iris_xgboost/model.bst" |
33 | 33 |
|
34 | 34 |
|
35 | | -@pytest.mark.usefixtures("delete_staging_bucket", "teardown") |
| 35 | +@pytest.mark.usefixtures("delete_staging_bucket") |
36 | 36 | class TestModel(e2e_base.TestEndToEnd): |
37 | 37 | _temp_prefix = f"{_TEST_PROJECT}-vertex-staging-{_TEST_LOCATION}" |
38 | 38 |
|
|