class TestStores(unittest.TestCase): def setUp(self): self.api = Api() self.api.login() def test_stores(self): self.result: Response = self.api.stores_issue() assert 200 == self.result.status_code response_json = self.result.json() print(response_json)
def authentication(): api = Api() response = api.login() assert 200 == response.status_code assert True == ("Welcome to the Secure Area." in response.text)