coquelicot: Implement functional tests with uploading file

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati authored and James Valleroy committed 2018-10-03 19:19:11 -04:00
1 parent 95664015ac
commit c83a3cd22e
5 files changed
+85 -4

No files matched your search

@@ -77,3 +77,9 @@ def new_user_is_listed(browser, name):
@then(parsers.parse('{name:w} should not be listed as a user'))
def new_user_is_not_listed(browser, name):
assert not interface.is_user(browser, name)
@given('a sample local file')
def sample_local_file():
file_path, contents = interface.create_sample_local_file()
return dict(file_path=file_path, contents=contents)