passing tests
This commit is contained in:
@@ -106,6 +106,7 @@ NK_API_LOCATION = CFG["nk_api_location"]
|
||||
TP_CLIENT_ID = CFG["tp_client_id"]
|
||||
TP_CLIENT_SECRET = CFG["tp_client_secret"]
|
||||
|
||||
|
||||
from requests_oauthlib import OAuth1, OAuth1Session
|
||||
|
||||
import pandas as pd
|
||||
@@ -386,7 +387,7 @@ def instroke_static(w, metric, debug=False, **kwargs):
|
||||
@app.task
|
||||
def handle_request_post(url, data, debug=False, **kwargs): # pragma: no cover
|
||||
if 'localhost' in url:
|
||||
url = 'http'+url[5:]
|
||||
url = 'http'+url[4:]
|
||||
response = requests.post(url, data, verify=False)
|
||||
dologging('upload_api.log', data)
|
||||
dologging('upload_api.log', response.status_code)
|
||||
|
||||
Reference in New Issue
Block a user