Make program downward compatible until python 3.7
Add multi-version tests with nox to keep regressions from happening.
This commit is contained in:
parent
b9c89155e3
commit
031145db01
11 changed files with 109 additions and 42 deletions
|
|
@ -37,8 +37,8 @@ def trackerlist():
|
|||
|
||||
|
||||
def test_simple_habit_transform_from_tracker(trackerlist):
|
||||
sut = trackerlist[0]
|
||||
assert habits.trackers_to_habits([sut]) == [
|
||||
result = habits.trackers_to_habits([trackerlist[0]])
|
||||
assert result == [
|
||||
loopdata.Habit(
|
||||
name="🧪 Testing",
|
||||
description="testtrack",
|
||||
|
|
@ -51,8 +51,8 @@ def test_simple_habit_transform_from_tracker(trackerlist):
|
|||
|
||||
|
||||
def test_range_habit_transform_from_tracker(trackerlist):
|
||||
sut = trackerlist[1]
|
||||
assert habits.trackers_to_habits([sut]) == [
|
||||
result = habits.trackers_to_habits([trackerlist[1]])
|
||||
assert result == [
|
||||
loopdata.Habit(
|
||||
name="🧪 Testing",
|
||||
description="testtrack",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue