Skip to content

Commit

Permalink
Update test_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuele Bosu committed Nov 13, 2024
1 parent bb24cb2 commit 3f27284
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/globaleaks/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def setUp(self):

self.api = api.APIResourceWrapper()

yield tw(db_update_enabled_languages, 1, ['en', 'ar', 'it'], 'en')
yield tw(db_update_enabled_languages, 1, ['en', 'ar'], 'en')
yield refresh_tenant_cache()

def test_api_spec(self):
Expand All @@ -36,7 +36,8 @@ def test_api_spec(self):
'admin',
'analyst',
'receiver',
'custodian'], check_roles))
'custodian',
'accreditor'], check_roles))
self.assertTrue(len(rest) == 0)

def test_get_with_no_accept_language_header(self):
Expand Down

0 comments on commit 3f27284

Please sign in to comment.