I have a test (APITestCase), and I need to specify custom headers:
class ListAppsAPITest(APITestCase):
def test_list_apps_versions(self):
response = self.client.get(reverse('api:applications:list'), None, **{'Device-Id': 'deadbeef'})
I've tried different combinations of arguments, but it did not work.
How to specify custom headers in tests?