satisfy flake8 linter

This commit is contained in:
Bdoner
2023-02-22 10:50:36 +01:00
parent fac374e941
commit fdbcf92bd6
3 changed files with 36 additions and 24 deletions
+9 -8
View File
@@ -65,7 +65,7 @@ def test_notifications(mocker):
"test.db")
# No active apprise notifcations configured. Confirm no notifications.
assert(notify_call.call_count == 0) # No notification should be sent.
assert (notify_call.call_count == 0) # No notification should be sent.
# Add daily notification.
notify_call.reset_mock()
@@ -85,8 +85,8 @@ def test_notifications(mocker):
settings_dict,
"test.db")
assert(notify_call.call_count == 1)
assert(
assert (notify_call.call_count == 1)
assert (
notify_call.call_args_list[0][0][0] == "A Great Crested Flycatcher (Myiarchus crinitus) was just detected with a confidence of 91 (first time today)"
)
@@ -108,12 +108,13 @@ def test_notifications(mocker):
settings_dict,
"test.db")
assert(notify_call.call_count == 2)
assert(
assert (notify_call.call_count == 2)
assert (
notify_call.call_args_list[0][0][0] == "A Great Crested Flycatcher (Myiarchus crinitus) was just detected with a confidence of 91 (first time today)"
)
assert(
notify_call.call_args_list[1][0][0] == "A Great Crested Flycatcher (Myiarchus crinitus) was just detected with a confidence of 91 (only seen 1 times in last 7d)"
assert (
notify_call.call_args_list[1][0][0] == "A Great Crested Flycatcher (Myiarchus crinitus) was just detected with a confidence \
of 91 (only seen 1 times in last 7d)"
)
# Add each species notification.
@@ -134,4 +135,4 @@ def test_notifications(mocker):
settings_dict,
"test.db")
assert(notify_call.call_count == 3)
assert (notify_call.call_count == 3)