Ejemplo n.º 1
0
 def setUp(self) -> None:
     self.credentials = create_credentials()
     self.user, self.token_headers = create_user(**self.credentials)
     self.client = Client()
     self.client.login(**self.credentials)
     self.log_type = random.choice(list(all_types.keys()))
     Whitelist.objects.create(log_type=self.log_type)
Ejemplo n.º 2
0
 def setUp(self) -> None:
     self.credentials = create_credentials()
     self.user, self.token_headers = create_user(**self.credentials)
     self.client = Client()
     self.client.login(**self.credentials)
     Whitelist.objects.create(log_type='rowboat')
Ejemplo n.º 3
0
 def setUp(self) -> None:
     self.credentials = create_credentials()
     self.user, self.token_headers = create_user(**self.credentials)
     self.client = Client()
     self.client.login(**self.credentials)