fixed user name api filter

This commit is contained in:
vabene1111
2022-06-09 17:31:17 +02:00
parent d5b7d440fe
commit 2ab1560aed
2 changed files with 2 additions and 1 deletions

View File

@ -64,6 +64,7 @@ def test_list_space(u1_s1, u2_s1, u1_s2, space_2):
assert len(json.loads(u1_s2.get(reverse(LIST_URL)).content)) == 1
u = auth.get_user(u2_s1)
u.userspace_set.first().delete()
UserSpace.objects.create(user=u, space=space_2)
assert len(json.loads(u1_s1.get(reverse(LIST_URL)).content)) == 1