def test_get_resolution_empty_default(self): """Test get_resolution returns default when query params are empty.""" query_params = {} handler = ReportQueryHandler(query_params, '', self.tenant, 'unblended_cost', 'currency_code') self.assertEqual(handler.get_resolution(), 'daily') self.assertEqual(handler.get_resolution(), 'daily')
def test_get_resolution_empty_day_time_scope(self): """Test get_resolution returns default when time_scope is month.""" query_params = {'filter': {'time_scope_value': -10}} handler = ReportQueryHandler(query_params, '', self.tenant, 'unblended_cost', 'currency_code') self.assertEqual(handler.get_resolution(), 'daily')