Handle closed-time typos from SWP API and update local dev setup (#32)
* updated dependencies, fixed "geschlossen" parsing * httpretty.core warning patch --------- Co-authored-by: Hadrian Burkhardt <hadrian.burkhardt@gmx.de>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import datetime as _dt
|
||||
|
||||
import httpretty.core as _httpretty_core
|
||||
|
||||
|
||||
class _PatchedDateTime(_dt.datetime):
|
||||
@classmethod
|
||||
def utcnow(cls):
|
||||
return _dt.datetime.now(_dt.UTC)
|
||||
|
||||
|
||||
def pytest_configure():
|
||||
_httpretty_core.datetime = _PatchedDateTime
|
||||
Reference in New Issue
Block a user