Helps skip integration tests without live credentials. Phrased in the negative to make it read better with 'skipif'.
()
| 15 | |
| 16 | |
| 17 | def no_real_s3_credentials(): |
| 18 | """Helps skip integration tests without live credentials. |
| 19 | |
| 20 | Phrased in the negative to make it read better with 'skipif'. |
| 21 | """ |
| 22 | if parse_boolean_envvar(os.getenv( |
| 23 | 'WALE_S3_INTEGRATION_TESTS')) is not True: |
| 24 | return True |
| 25 | |
| 26 | for e_var in ('AWS_ACCESS_KEY_ID', |
| 27 | 'AWS_SECRET_ACCESS_KEY'): |
| 28 | if os.getenv(e_var) is None: |
| 29 | return True |
| 30 | |
| 31 | return False |
| 32 | |
| 33 | |
| 34 | def prepare_s3_default_test_bucket(): |
no test coverage detected