2020-06-15 10:02:25 +00:00
|
|
|
"""Tests for the metoffice component."""
|
2020-08-23 07:57:58 +00: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)
|