Make program downward compatible until python 3.7

Add multi-version tests with nox to keep regressions from happening.
This commit is contained in:
Marty Oehme 2021-12-15 14:58:06 +01:00
parent b9c89155e3
commit 031145db01
Signed by: Marty
GPG key ID: B7538B8F50A1C800
11 changed files with 109 additions and 42 deletions

View file

@ -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",