In order to pass all the tests we need to make the import public
This commit is contained in:
parent
298a893ec5
commit
2b1b9cd729
@ -4,13 +4,14 @@ import json
|
|||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
||||||
class ImportHelper:
|
class ImportHelper:
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def import_test_dataset(cls, username, api_key, host):
|
def import_test_dataset(cls, username, api_key, host):
|
||||||
requests.packages.urllib3.disable_warnings()
|
requests.packages.urllib3.disable_warnings()
|
||||||
url = "https://{0}.{1}/api/v1/imports/"\
|
url = "https://{0}.{1}/api/v1/imports/"\
|
||||||
"?type_guessing=false&api_key={2}".format(
|
"?type_guessing=false&privacy=public&api_key={2}".format(
|
||||||
username, host, api_key)
|
username, host, api_key)
|
||||||
dataset = {
|
dataset = {
|
||||||
'file': open('fixtures/geocoder_api_test_dataset.csv', 'rb')}
|
'file': open('fixtures/geocoder_api_test_dataset.csv', 'rb')}
|
||||||
|
Loading…
Reference in New Issue
Block a user