From c01e64efa0f14a5e5f5069752ca527e15e3442dc Mon Sep 17 00:00:00 2001 From: nathanhilbert Date: Mon, 28 Sep 2015 13:44:01 -0500 Subject: [PATCH] working tests again --- openspending/tests/model/test_country.py | 4 ++-- openspending/tests/views/test_all_views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openspending/tests/model/test_country.py b/openspending/tests/model/test_country.py index 8c432ba6..e2dc2251 100644 --- a/openspending/tests/model/test_country.py +++ b/openspending/tests/model/test_country.py @@ -24,8 +24,8 @@ def tearDown(self): def test_all_countries(self): result = Country.get_all_json() - assert len(result['data']) == 198 - assert len(result['data'][0]['regions']) == 8 + assert len(result) == 198 + assert len(result[0]['regions']) == 8 def test_properties_regions(self): tempobj = Country.by_gid(1) diff --git a/openspending/tests/views/test_all_views.py b/openspending/tests/views/test_all_views.py index f7e591a9..6ace48d2 100644 --- a/openspending/tests/views/test_all_views.py +++ b/openspending/tests/views/test_all_views.py @@ -41,7 +41,7 @@ def test_home_heartbeat(self): assert '200' in response.status def test_categories_dataorgs(self): - response = self.client.get(url_for('categories_api2.dataorgs')) + response = self.client.get(url_for('datasets_api2.dataorgs')) assert '200' in response.status def test_countries_countrieslist(self):