aboutsummaryrefslogtreecommitdiff
path: root/server/szurubooru/tests/func/test_diff.py
diff options
context:
space:
mode:
Diffstat (limited to 'server/szurubooru/tests/func/test_diff.py')
-rw-r--r--server/szurubooru/tests/func/test_diff.py24
1 files changed, 20 insertions, 4 deletions
diff --git a/server/szurubooru/tests/func/test_diff.py b/server/szurubooru/tests/func/test_diff.py
index 5ea5780..5e415b5 100644
--- a/server/szurubooru/tests/func/test_diff.py
+++ b/server/szurubooru/tests/func/test_diff.py
@@ -6,7 +6,11 @@ from szurubooru.func import diff
@pytest.mark.parametrize(
"old,new,expected",
[
- ([], [], None,),
+ (
+ [],
+ [],
+ None,
+ ),
(
[],
["added"],
@@ -17,7 +21,11 @@ from szurubooru.func import diff
[],
{"type": "list change", "added": [], "removed": ["removed"]},
),
- (["untouched"], ["untouched"], None,),
+ (
+ ["untouched"],
+ ["untouched"],
+ None,
+ ),
(
["untouched"],
["untouched", "added"],
@@ -37,7 +45,11 @@ def test_get_list_diff(old, new, expected):
@pytest.mark.parametrize(
"old,new,expected",
[
- ({}, {}, None,),
+ (
+ {},
+ {},
+ None,
+ ),
(
{"removed key": "removed value"},
{},
@@ -78,7 +90,11 @@ def test_get_list_diff(old, new, expected):
},
},
),
- ({"key": "untouched"}, {"key": "untouched"}, None,),
+ (
+ {"key": "untouched"},
+ {"key": "untouched"},
+ None,
+ ),
(
{"key": "untouched", "removed key": "removed value"},
{"key": "untouched"},

© 2015 - 2026 Jakob L. Kreuze