mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
coquelicot: Implement functional tests with uploading file
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
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)
|
||||
Reference in new issue
Block a user