From 55baab413a5a15b51471393318004ff84be62ec9 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Thu, 9 Jun 2016 22:58:20 -0700 Subject: [PATCH] [hotfix] fixing the build (#594) --- caravel/viz.py | 2 +- tests/core_tests.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/caravel/viz.py b/caravel/viz.py index 87e4bf018..8dd3004a0 100644 --- a/caravel/viz.py +++ b/caravel/viz.py @@ -103,7 +103,7 @@ class BaseViz(object): def get_url(self, **kwargs): """Returns the URL for the viz""" - d = self.form_data.copy() + d = self.orig_form_data.copy() if 'json' in d: del d['json'] if 'action' in d: diff --git a/tests/core_tests.py b/tests/core_tests.py index e67329d13..183329e71 100644 --- a/tests/core_tests.py +++ b/tests/core_tests.py @@ -8,6 +8,7 @@ from datetime import datetime import doctest import json import imp +import logging import os import unittest from mock import Mock, patch @@ -149,7 +150,7 @@ class CoreTests(CaravelTestCase): (slc.slice_name, 'csv_endpoint', slc.viz.csv_endpoint), ] for name, method, url in urls: - print("[name]/[{method}]: {url}".format(**locals())) + logging.info("[{name}]/[{method}]: {url}".format(**locals())) self.client.get(url) def test_dashboard(self):