Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gem/oq-engine
Browse files Browse the repository at this point in the history
  • Loading branch information
nastasi-oq committed Jun 24, 2013
2 parents a47985e + 9ac75d6 commit e7f0d3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/db/models_manager_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,15 @@ 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, ())

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",))
Expand Down

0 comments on commit e7f0d3f

Please sign in to comment.