File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change 1414from absl .testing import absltest
1515
1616import 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 ()
2121class 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."""
Original file line number Diff line number Diff line change 77def 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
You can’t perform that action at this time.
0 commit comments