MCPcopy Create free account
hub / github.com/wal-e/wal-e / no_real_wabs_credentials

Function no_real_wabs_credentials

tests/wabs_integration_help.py:7–20  ·  view source on GitHub ↗

Helps skip integration tests without live credentials. Phrased in the negative to make it read better with 'skipif'.

()

Source from the content-addressed store, hash-verified

5
6
7def no_real_wabs_credentials():
8 """Helps skip integration tests without live credentials.
9
10 Phrased in the negative to make it read better with 'skipif'.
11 """
12 if parse_boolean_envvar(os.getenv(
13 'WALE_WABS_INTEGRATION_TESTS')) is not True:
14 return True
15
16 for e_var in ('WABS_ACCOUNT_NAME', 'WABS_ACCESS_KEY'):
17 if os.getenv(e_var) is None:
18 return True
19
20 return False
21
22
23def apathetic_container_delete(container_name, *args, **kwargs):

Callers

nothing calls this directly

Calls 1

parse_boolean_envvarFunction · 0.90

Tested by

no test coverage detected