Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
eheinrich committed Sep 1, 2020
1 parent dfe3c33 commit c171ebf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion observation_portal/requestgroups/test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2825,7 +2825,8 @@ def test_requestgroup_filtering_works(self):
def test_request_filtering_works(self):
proposal = mixer.blend(Proposal, public=True)
rg = mixer.blend(RequestGroup, name='filter on me', proposal=proposal, observation_type=RequestGroup.NORMAL)
mixer.blend(Request, state='PENDING', request_group=rg)
request = mixer.blend(Request, state='PENDING', request_group=rg)
create_simple_configuration(request=request)
response = self.client.get(reverse('api:request_groups-list') + '?state=PENDING')
self.assertEqual(response.json()['count'], 1)
response = self.client.get(reverse('api:request_groups-list') + '?state=COMPLETED')
Expand Down

0 comments on commit c171ebf

Please sign in to comment.