1 from requests import post, codes
2 from test_settings import TEST_REST_URL, TEST_REST_GET_ACCESS_TOKEN_ENDPOINT, TEST_REST_HEADERS
4 def test_get_auth_token(auth_credentials):
5 url = f"{TEST_REST_URL}{TEST_REST_GET_ACCESS_TOKEN_ENDPOINT}"
6 response = post(url, headers=TEST_REST_HEADERS, verify=False, json=auth_credentials[0])
7 json_response = response.json()
8 assert "accessToken" in json_response
9 assert "expires" in json_response
10 assert response.status_code == codes.created