stash
This commit is contained in:
parent
972ad7a1d8
commit
0b24f3d964
3 changed files with 12 additions and 4 deletions
|
@ -368,6 +368,7 @@ class IssueSearchTest(TestCase):
|
|||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.event = Event.objects.create(slug='EVENT', name='Event')
|
||||
self.user = ExtendedUser.objects.create_user('testuser', 'test', 'test')
|
||||
self.user.user_permissions.add(*Permission.objects.all())
|
||||
self.user.save()
|
||||
|
@ -376,6 +377,6 @@ class IssueSearchTest(TestCase):
|
|||
|
||||
def test_search(self):
|
||||
search_query = b64encode(b'abc').decode('utf-8')
|
||||
response = self.client.get(f'/api/2/evt/tickets/{search_query}/')
|
||||
response = self.client.get(f'/api/2/{self.event.slug}/tickets/{search_query}/')
|
||||
self.assertEqual(200, response.status_code)
|
||||
self.assertEqual([], response.json())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue