adding ordered dict to tests
This commit is contained in:
parent
a451fb5b6a
commit
623613aa5c
@ -2,18 +2,19 @@ import unittest
|
||||
|
||||
import crankshaft.pysal_utils as pu
|
||||
from crankshaft import random_seeds
|
||||
from collections import OrderedDict
|
||||
|
||||
|
||||
class PysalUtilsTest(unittest.TestCase):
|
||||
"""Testing class for utility functions related to PySAL integrations"""
|
||||
|
||||
def setUp(self):
|
||||
self.params = {"id_col": "cartodb_id",
|
||||
"attr1": "andy",
|
||||
"attr2": "jay_z",
|
||||
"subquery": "SELECT * FROM a_list",
|
||||
"geom_col": "the_geom",
|
||||
"num_ngbrs": 321}
|
||||
self.params = OrderedDict([("id_col", "cartodb_id"),
|
||||
("attr1": "andy"),
|
||||
("attr2": "jay_z"),
|
||||
("subquery": "SELECT * FROM a_list"),
|
||||
("geom_col": "the_geom"),
|
||||
("num_ngbrs": 321)])
|
||||
|
||||
self.params_array = {"id_col": "cartodb_id",
|
||||
"time_cols": ["_2013_dec", "_2014_jan", "_2014_feb"],
|
||||
|
Loading…
Reference in New Issue
Block a user