Proposed update to support MayaDT - MayaDT -> datetime.timedelta

This commit is contained in:
Tom Barron
2018-01-29 13:37:31 -05:00
parent 91e7f499e2
commit b57f4a6775
3 changed files with 264 additions and 27 deletions
+7
View File
@@ -285,6 +285,13 @@ def test_dunder_sub():
assert now - timedelta(seconds=1) == now.subtract(seconds=1)
def test_mayaDT_sub():
now = maya.now()
then = now.add(days=1)
assert then - now == timedelta(24*60*60)
assert now - then == timedelta(-24*60*60)
def test_core_local_timezone(monkeypatch):
@property
def mock_local_tz(self):