Skip to content

Commit 5e7555d

Browse files
cleanup
1 parent 8d737c5 commit 5e7555d

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

tests/e2e/cpu_execution_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@
1414
from absl.testing import absltest
1515

1616
import keras_remote
17-
from tests.e2e.e2e_utils import get_gcp_project, skip_unless_e2e
17+
from tests.e2e.e2e_utils import skip_unless_e2e
1818

1919

2020
@skip_unless_e2e()
2121
class TestCpuExecution(absltest.TestCase):
2222
def setUp(self):
2323
super().setUp()
24-
self.project = get_gcp_project()
2524

2625
def test_simple_function(self):
2726
"""Execute a simple add function remotely and verify the result."""

tests/e2e/e2e_utils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,3 @@
77
def skip_unless_e2e(reason="E2E_TESTS not set"):
88
"""Skip decorator for e2e tests unless E2E_TESTS env var is set."""
99
return unittest.skipUnless(os.environ.get("E2E_TESTS"), reason)
10-
11-
12-
def get_gcp_project():
13-
"""Return GCP project from env, skip test if not set."""
14-
project = os.environ.get("KERAS_REMOTE_PROJECT")
15-
if not project:
16-
raise unittest.SkipTest("KERAS_REMOTE_PROJECT not set")
17-
return project

0 commit comments

Comments
 (0)