blue-yonder / azure-cost-mon

Prometheus exporter for the Azure billing API
MIT License
61 stars 13 forks source link

Be sensitive to token in tests #2

Closed ManuelBahr closed 7 years ago

ManuelBahr commented 7 years ago

Currently, the test_token test runs through but actually should fail. The test obviously is not sensitive to the token setting. In practice it works, but the test should represent that behaviour.

MathMagique commented 7 years ago

This is the test in question: https://github.com/blue-yonder/azure-cost-mon/blob/master/tests/test_app.py#L32

ManuelBahr commented 7 years ago

This should be the trick to check for the header https://github.com/getsentry/responses#request-callback