From 4ca82f01a881bd585991c59c9706061c78a92b7b Mon Sep 17 00:00:00 2001 From: Mario de Frutos Date: Sun, 6 Dec 2015 14:52:57 +0100 Subject: [PATCH] Deactivated field guessing to avoid convert postal code to integer --- test/run_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/run_tests.py b/test/run_tests.py index 443d3cd..d106dac 100644 --- a/test/run_tests.py +++ b/test/run_tests.py @@ -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)