summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2022-11-24 01:17:01 +0100
committerTobias Brox <tobias@redpill-linpro.com>2022-11-24 01:17:01 +0100
commitc287de35b862a01ec8f6bb443502b10a1ae5eac5 (patch)
tree2c2f60fae293cf1aef5686d77fc97bef666c272a
parent3fa77934513954f72f5fb1f9041c8b54cc4c4fb8 (diff)
downloadcalendar-cli-c287de35b862a01ec8f6bb443502b10a1ae5eac5.zip
more fixups to the test code
-rw-r--r--tests/test_cal.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_cal.py b/tests/test_cal.py
index bfbd325..a58e6a9 100644
--- a/tests/test_cal.py
+++ b/tests/test_cal.py
@@ -3,8 +3,8 @@ import sys
sys.path.insert(0,'.')
sys.path.insert(1,'..')
from datetime import datetime, date
-from cal import parse_timespec
-from lib.template import Template
+from calendar_cli.cal import parse_timespec
+from calendar_cli.template import Template
"""calendar-cli is a command line utility, and it's an explicit design
goal that it should contain minimal logic except for parsing and
@@ -17,7 +17,7 @@ goal to get complete code coverage through this unit test, though any
the caldav library ought to be tested here. """
class TestTemplate:
- def setup(self):
+ def setup_method(self):
self.date = date(1990, 10, 10)
def test_formatting_with_timespec(self):