From 0723862a570feb0619b4ac5eb59cced674def619 Mon Sep 17 00:00:00 2001 From: Lars Butler Date: Mon, 24 Jun 2013 17:39:44 +0200 Subject: [PATCH] tests/db/models_manager_test: Fixed some broken tests. --- tests/db/models_manager_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/db/models_manager_test.py b/tests/db/models_manager_test.py index 4bba53e3bba9..00acc43ba8b0 100644 --- a/tests/db/models_manager_test.py +++ b/tests/db/models_manager_test.py @@ -190,7 +190,7 @@ def test_get_people_query_helper_population_time_event(self): def test_get_people_query_helper_buildings_no_event(self): field, cond, join, args = self.manager._get_people_query_helper( "buildings", None) - self.assertEqual("AVG(riski.occupancy.occupants::float)", field) + self.assertEqual("AVG(riski.occupancy.occupants)", field) self.assertEqual("1 = 1", cond) self.assertEqual("LEFT JOIN riski.occupancy", join) self.assertEqual(args, ()) @@ -198,7 +198,7 @@ def test_get_people_query_helper_buildings_no_event(self): def test_get_people_query_helper_buildings_time_event(self): field, cond, join, args = self.manager._get_people_query_helper( "buildings", "day") - self.assertEqual("AVG(riski.occupancy.occupants::float)", field) + self.assertEqual("AVG(riski.occupancy.occupants)", field) self.assertEqual("riski.occupancy.period = %s", cond) self.assertEqual("LEFT JOIN riski.occupancy", join) self.assertEqual(args, ("day",))