Skip to content
Snippets Groups Projects
Commit 07b18ba6 authored by Harsha Kethineni's avatar Harsha Kethineni
Browse files

Add failing test

parent da4be0ad
No related branches found
No related tags found
No related merge requests found
from dateutil.parser import parse
def test_groups(as_admin, data_builder):
# Cannot find a non-existant group
r = as_admin.get('/groups/non-existent')
......@@ -8,11 +10,16 @@ def test_groups(as_admin, data_builder):
# Able to find new group
r = as_admin.get('/groups/' + group)
assert r.ok
first_modified = r.json()['modified']
# Able to change group name
group_name = 'New group name'
r = as_admin.put('/groups/' + group, json={'name': group_name})
assert r.ok
second_modified = r.json()['modified']
d1 = parse(first_modified)
d2 = parse(second_modified)
assert d2 > d1
r = as_admin.get('/groups/' + group)
assert r.ok
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment