rename renew_api_key to create_api_key

This commit is contained in:
Leo Hemsted
2016-06-23 16:44:57 +01:00
parent ed5bdb7be8
commit f371c393a2
3 changed files with 7 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ def test_url_for_update_service(notify_api):
assert str(url) == '/service/{}'.format(service_id)
def test_url_for_renew_api_key(notify_api):
def test_url_for_create_api_key(notify_api):
with notify_api.test_request_context():
url = url_for('service.renew_api_key', service_id=service_id)
url = url_for('service.create_api_key', service_id=service_id)
assert str(url) == '/service/{}/api-key'.format(service_id)