Skip to content

Commit

Permalink
[#1131] Test that example values are displayed in the HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Mar 11, 2019
1 parent 4c53dcd commit fc0f864
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions cove_360/tests_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,34 @@ def server_url(request, live_server):
'Invalid \'uri\' found (more info)',
'Invalid code found in Currency (more info)',
'[] is too short. You must supply at least one value, or remove the item entirely (unless it’s required).',
'bad date',
'This should be a number',
'This should be a uri',
'bad currency',
], True),
('badfile_all_validation_errors_4_times.xlsx', [
'description is missing but required (more info)',
'id is missing but required within recipientOrganization (more info)',
'Date is not in the correct format (more info)',
'Amount Awarded is not a number. Check that the value is not null, and doesn’t contain any characters other than 0-9 and dot (.). Number values should not be in quotes.',
'Invalid \'uri\' found (more info)',
'Invalid code found in Currency (more info)',
'[] is too short. You must supply at least one value, or remove the item entirely (unless it’s required).',
'bad date 1',
'bad date 2',
'bad date 3',
'bad date 4',
'This should be a number',
'This should be a uri 1',
'This should be a uri 2',
'This should be a uri 3',
'This should be a uri 5',
'This should be a uri 6',
'This should be a uri 7',
'bad currency 1',
'bad currency 2',
'bad currency 3',
'bad currency 4',
], True),
])
def test_explore_360_url_input(server_url, browser, httpserver, source_filename, expected_text, conversion_successful):
Expand Down

0 comments on commit fc0f864

Please sign in to comment.