From c287de35b862a01ec8f6bb443502b10a1ae5eac5 Mon Sep 17 00:00:00 2001 From: Tobias Brox Date: Thu, 24 Nov 2022 01:17:01 +0100 Subject: more fixups to the test code --- tests/test_cal.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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): -- cgit v1.2.3