Changes between Version 6 and Version 7 of Ticket #30575
- Timestamp:
- Jun 20, 2019, 7:26:25 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30575
- Property Resolution worksforme
- Property Status closed → new
-
Ticket #30575 – Description
v6 v7 27 27 for tzname in ['UTC', 'America/Los_Angeles']: 28 28 tz = pytz.timezone(tzname) 29 _qs = qs.filter(timezone=tzname) 29 _qs = qs.filter(timezone=tzname) # was but in test hardcoded "UTC" instead of `tzname` 30 30 _qs = _qs.annotate(trunc_local_time=TruncSecond('timestamp', tzinfo=tz)) # could be Trunc_anything_ 31 31 partitions.append(_qs) … … 44 44 }}} 45 45 46 Problem - different TZ offsets 46 47 {{{ 47 48 Failure 48 49 Traceback (most recent call last): 49 File "/home/jurgis/dev/new/tableair/sync_tableair-cloud/ta/api/book ing/tests/test_endpoints.py", line 1107, in test_demo_bug50 File "/home/jurgis/dev/new/tableair/sync_tableair-cloud/ta/api/bookables/tests/test_endpoints.py", line 689, in test_demo_bug 50 51 assert x.trunc_local_time == x.expected, "Error (msg: '{x.msg}'): {x.trunc_local_time} != {x.expected}".format(x=x) 51 AssertionError: Error (msg: 'bla'): 2016-12-31 16:00:00+00:00 != 2017-01-01 00:00:00+00:00}}} 52 AssertionError: Error (msg: 'foo'): 2016-12-31 16:00:00+00:00 != 2016-12-31 16:00:00-08:00 53 }}}