Skip to content

Commit 18e2f15

Browse files
committed
Reset collection mode and sort after test
1 parent 094bfce commit 18e2f15

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_collection.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,21 @@ def test_Collection_modeUpdate(collection):
4343
assert collection.collectionMode == value
4444
with pytest.raises(BadRequest):
4545
collection.modeUpdate(mode="bad-mode")
46+
collection.modeUpdate("default")
4647

4748

48-
def test_Colletion_sortUpdate(collection):
49+
def test_Collection_sortUpdate(collection):
4950
sort_dict = {"release": 0, "alpha": 1, "custom": 2}
5051
for key, value in sort_dict.items():
5152
collection.sortUpdate(sort=key)
5253
collection.reload()
5354
assert collection.collectionSort == value
5455
with pytest.raises(BadRequest):
5556
collection.sortUpdate(sort="bad-sort")
57+
collection.sortUpdate("release")
5658

5759

58-
def test_Colletion_edit(collection):
60+
def test_Collection_edit(collection):
5961
edits = {"titleSort.value": "New Title Sort", "titleSort.locked": 1}
6062
collectionTitleSort = collection.titleSort
6163
collection.edit(**edits)

0 commit comments

Comments
 (0)