fix(core): Address code review from Issue #1
This commit is contained in:
1 parent
5d9df6649a
commit
6061f5c4e5
28 files changed
+205
-56
No files matched your search
+2
-1
@@ -6,6 +6,7 @@ Tests that core modules can be imported and initialized correctly.
|
||||
|
||||
import unittest
|
||||
from datetime import datetime
|
||||
from datetime import timezone
|
||||
|
||||
from becomingone import (
|
||||
KAIROSTemporalEngine,
|
||||
@@ -105,7 +106,7 @@ class TestCoherenceCalculator(unittest.TestCase):
|
||||
"""Test compute_from_phases method works."""
|
||||
calc = CoherenceCalculator()
|
||||
from datetime import datetime, timedelta
|
||||
now = datetime.utcnow()
|
||||
now = datetime.now(timezone.utc)
|
||||
timestamps = [now + timedelta(seconds=i) for i in range(3)]
|
||||
result = calc.compute_from_phases(
|
||||
[0.1+0.1j, 0.2+0.2j, 0.3+0.3j],
|
||||
|
||||
Reference in new issue
Block a user