Deactivated field guessing to avoid convert postal code to integer

This commit is contained in:
Mario de Frutos
2015-12-06 14:52:57 +01:00
parent 916b353ffe
commit 4ca82f01a8

View File

@@ -44,9 +44,9 @@ def usage():
def import_test_dataset(username, api_key, host):
url = "https://{0}.{1}/api/v1/imports/?api_key={2}".format(
username, host, api_key
)
url = "https://{0}.{1}/api/v1/imports/"\
"?type_guessing=false&api_key={2}".format(
username, host, api_key)
dataset = {'file': open('fixtures/geocoder_api_test_dataset.csv', 'rb')}
response = requests.post(url, files=dataset)
response_json = json.loads(response.text)