Files
notifications-admin/tests/app/main/views/test_api_keys.py

15 lines
587 B
Python
Raw Normal View History

from flask import url_for
2016-01-19 09:49:01 +00:00
def test_should_show_api_keys_and_documentation_page(app_,
db_,
db_session,
2016-01-20 15:40:06 +00:00
active_user,
mock_user_loader):
2016-01-19 09:49:01 +00:00
with app_.test_request_context():
with app_.test_client() as client:
client.login(active_user)
response = client.get(url_for('main.api_keys', service_id=123))
assert response.status_code == 200