Skip to content

Commit 56e3ea5

Browse files
1 parent 6d25555 commit 56e3ea5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test_discovery.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,9 +2340,9 @@ def test_get_media(self):
23402340
self.assertEqual(b"standing in for media", response)
23412341

23422342

2343-
23442343
class Universe(unittest.TestCase):
23452344
if HAS_UNIVERSE:
2345+
23462346
def test_validate_credentials_with_no_client_options(self):
23472347
http = build_http()
23482348
discovery = read_datafile("zoo.json")
@@ -2605,9 +2605,7 @@ def test_universe_env_var_configured_empty(self):
26052605
discovery = read_datafile("tasks.json")
26062606

26072607
with self.assertRaises(universe.EmptyUniverseError):
2608-
with mock.patch.dict(
2609-
"os.environ", {"GOOGLE_CLOUD_UNIVERSE_DOMAIN": ""}
2610-
):
2608+
with mock.patch.dict("os.environ", {"GOOGLE_CLOUD_UNIVERSE_DOMAIN": ""}):
26112609
tasks = build_from_document(
26122610
discovery,
26132611
credentials=credentials,

0 commit comments

Comments
 (0)