mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Add radio buttons for choosing the API key type
Best-guess wording for what the labels and question should be. Adds a macro for rendering radio buttons from a WTForms field.
This commit is contained in:
@@ -72,8 +72,13 @@ def test_should_create_api_key_with_type_normal(app_,
|
||||
|
||||
with app_.test_request_context(), app_.test_client() as client:
|
||||
client.login(api_user_active)
|
||||
response = client.post(url_for('main.create_api_key', service_id=service_id),
|
||||
data={'key_name': 'some default key name'})
|
||||
response = client.post(
|
||||
url_for('main.create_api_key', service_id=service_id),
|
||||
data={
|
||||
'key_name': 'some default key name',
|
||||
'key_type': 'normal'
|
||||
}
|
||||
)
|
||||
|
||||
assert response.status_code == 200
|
||||
assert 'some default key name' in response.get_data(as_text=True)
|
||||
|
||||
Reference in New Issue
Block a user