2020-06-15 11:02:25 +01:00
|
|
|
"""Tests for the metoffice component."""
|
2020-08-23 02:57:58 -05:00
|
|
|
|
|
|
|
import datetime
|
|
|
|
|
|
|
|
|
|
|
|
class NewDateTime(datetime.datetime):
|
|
|
|
"""Patch time to a specific point."""
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def now(cls, *args, **kwargs): # pylint: disable=signature-differs
|
|
|
|
"""Overload datetime.datetime.now."""
|
|
|
|
return cls(2020, 4, 25, 12, tzinfo=datetime.timezone.utc)
|