From 18e2f15b576620befac60fbb8f763842dd44652d Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sun, 14 Feb 2021 23:48:58 -0800 Subject: [PATCH] Reset collection mode and sort after test --- tests/test_collection.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_collection.py b/tests/test_collection.py index b3609b3c..04b10195 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -43,9 +43,10 @@ def test_Collection_modeUpdate(collection): assert collection.collectionMode == value with pytest.raises(BadRequest): collection.modeUpdate(mode="bad-mode") + collection.modeUpdate("default") -def test_Colletion_sortUpdate(collection): +def test_Collection_sortUpdate(collection): sort_dict = {"release": 0, "alpha": 1, "custom": 2} for key, value in sort_dict.items(): collection.sortUpdate(sort=key) @@ -53,9 +54,10 @@ def test_Colletion_sortUpdate(collection): assert collection.collectionSort == value with pytest.raises(BadRequest): collection.sortUpdate(sort="bad-sort") + collection.sortUpdate("release") -def test_Colletion_edit(collection): +def test_Collection_edit(collection): edits = {"titleSort.value": "New Title Sort", "titleSort.locked": 1} collectionTitleSort = collection.titleSort collection.edit(**edits)