Exemplo n.º 1
0
 def get_current_user(self, app_url, access_token):
     LOG.info("get_current_user")
     request_headers = build_request_headers(access_token)
     response = SESSION.get(f"{app_url}{self.user_url}/me",
                            headers=request_headers)
     return response
Exemplo n.º 2
0
 def get_all_comments(self, app_url, access_token):
     LOG.info("get_all_comments")
     request_headers = build_request_headers(access_token)
     response = SESSION.get(
         f"{app_url}{self.comment_url}", headers=request_headers)
     return response
Exemplo n.º 3
0
def test_health():
    LOG.info("test_health")
    response = SESSION.get(f"{APP_URL}/health")
    assert response.ok