MCPcopy
hub / github.com/celery/celery / test_uses_utc_timezone

Method test_uses_utc_timezone

t/unit/app/test_app.py:1233–1248  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1231 del timezone.local
1232
1233 def test_uses_utc_timezone(self):
1234 self.app.conf.timezone = None
1235 self.app.conf.enable_utc = True
1236 assert self.app.uses_utc_timezone() is True
1237
1238 self.app.conf.enable_utc = False
1239 del self.app.timezone
1240 assert self.app.uses_utc_timezone() is False
1241
1242 self.app.conf.timezone = 'US/Eastern'
1243 del self.app.timezone
1244 assert self.app.uses_utc_timezone() is False
1245
1246 self.app.conf.timezone = 'UTC'
1247 del self.app.timezone
1248 assert self.app.uses_utc_timezone() is True
1249
1250 def test_compat_on_configure(self):
1251 _on_configure = Mock(name='on_configure')

Callers

nothing calls this directly

Calls 1

uses_utc_timezoneMethod · 0.80

Tested by

no test coverage detected