Helps skip integration tests without live credentials. Phrased in the negative to make it read better with 'skipif'.
()
| 5 | |
| 6 | |
| 7 | def 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 | |
| 23 | def apathetic_container_delete(container_name, *args, **kwargs): |
nothing calls this directly
no test coverage detected