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):