|
2 | 2 | import pytest |
3 | 3 | from plexapi.exceptions import NotFound |
4 | 4 | from . import conftest as utils |
5 | | -from time import sleep |
6 | 5 |
|
7 | 6 |
|
8 | 7 | def test_library_Library_section(plex): |
@@ -202,40 +201,40 @@ def test_library_and_section_search_for_movie(plex): |
202 | 201 | assert l_search == s_search |
203 | 202 |
|
204 | 203 |
|
205 | | -def test_library_Colletions_modeUpdate_hide(collection): |
| 204 | +def test_library_Colletion_modeUpdate_hide(collection): |
206 | 205 | collection.modeUpdate(mode='hide') |
207 | 206 | collection.reload() |
208 | 207 | assert collection.collectionMode == '0' |
209 | 208 |
|
210 | 209 |
|
211 | | -def test_library_Colletions_modeUpdate_default(collection): |
| 210 | +def test_library_Colletion_modeUpdate_default(collection): |
212 | 211 | collection.modeUpdate(mode='default') |
213 | 212 | collection.reload() |
214 | 213 | assert collection.collectionMode == '-2' |
215 | 214 |
|
216 | 215 |
|
217 | | -def test_library_Colletions_modeUpdate_hideItems(collection): |
| 216 | +def test_library_Colletion_modeUpdate_hideItems(collection): |
218 | 217 | collection.modeUpdate(mode='hideItems') |
219 | 218 | collection.reload() |
220 | 219 | assert collection.collectionMode == '1' |
221 | 220 |
|
222 | 221 |
|
223 | | -def test_library_Colletions_modeUpdate_showItems(collection): |
| 222 | +def test_library_Colletion_modeUpdate_showItems(collection): |
224 | 223 | collection.modeUpdate(mode='showItems') |
225 | 224 | collection.reload() |
226 | 225 | assert collection.collectionMode == '2' |
227 | 226 |
|
228 | 227 |
|
229 | | -def test_library_Colletions_sortAlpha(collection): |
230 | | - collection.sortUpdate(mode='alpha') |
| 228 | +def test_library_Colletion_sortAlpha(collection): |
| 229 | + collection.sortUpdate(sort='alpha') |
231 | 230 | collection.reload() |
232 | | - assert collection.collectionMode == '1' |
| 231 | + assert collection.collectionSort == '1' |
233 | 232 |
|
234 | 233 |
|
235 | | -def test_library_Colletions_sortRelease(collection): |
236 | | - collection.sortUpdate(mode='release') |
| 234 | +def test_library_Colletion_sortRelease(collection): |
| 235 | + collection.sortUpdate(sort='release') |
237 | 236 | collection.reload() |
238 | | - assert collection.collectionMode == '0' |
| 237 | + assert collection.collectionSort == '0' |
239 | 238 |
|
240 | 239 | # This started failing on more recent Plex Server builds |
241 | 240 | @pytest.mark.xfail |
|
0 commit comments