@@ -18,7 +18,9 @@ def test_list_shows(plex_session: Plex | None, httpx_mock: HTTPXMock) -> None:
1818 plex_session = Plex (base_url = "http://localhost" , token = "INVALID" ) # noqa: S106
1919 httpx_mock .add_response (
2020 url = "http://localhost/library/sections" ,
21- json = json .loads (Path ("tests/resources/plex/list-libraries.json" ).read_text (encoding = "UTF-8" )),
21+ json = json .loads (
22+ Path ("tests/resources/plex/list-libraries.json" ).read_text (encoding = "UTF-8" )
23+ ),
2224 is_reusable = True ,
2325 )
2426 httpx_mock .add_response (
@@ -43,7 +45,9 @@ def test_get_show(plex_session: Plex | None, httpx_mock: HTTPXMock) -> None:
4345 plex_session = Plex (base_url = "http://localhost" , token = "INVALID" ) # noqa: S106
4446 httpx_mock .add_response (
4547 url = "http://localhost/library/sections" ,
46- json = json .loads (Path ("tests/resources/plex/list-libraries.json" ).read_text (encoding = "UTF-8" )),
48+ json = json .loads (
49+ Path ("tests/resources/plex/list-libraries.json" ).read_text (encoding = "UTF-8" )
50+ ),
4751 is_reusable = True ,
4852 )
4953 httpx_mock .add_response (
@@ -98,7 +102,9 @@ def test_list_episodes(plex_session: Plex | None, httpx_mock: HTTPXMock) -> None
98102 plex_session = Plex (base_url = "http://localhost" , token = "INVALID" ) # noqa: S106
99103 httpx_mock .add_response (
100104 url = re .compile (r"http://localhost/library/metadata/.*/children\?includeGuids=1" ),
101- json = json .loads (Path ("tests/resources/plex/list-episodes.json" ).read_text (encoding = "UTF-8" )),
105+ json = json .loads (
106+ Path ("tests/resources/plex/list-episodes.json" ).read_text (encoding = "UTF-8" )
107+ ),
102108 is_reusable = True ,
103109 )
104110
@@ -123,17 +129,23 @@ def test_list_collections(plex_session: Plex | None, httpx_mock: HTTPXMock) -> N
123129 plex_session = Plex (base_url = "http://localhost" , token = "INVALID" ) # noqa: S106
124130 httpx_mock .add_response (
125131 url = "http://localhost/library/sections" ,
126- json = json .loads (Path ("tests/resources/plex/list-libraries.json" ).read_text (encoding = "UTF-8" )),
132+ json = json .loads (
133+ Path ("tests/resources/plex/list-libraries.json" ).read_text (encoding = "UTF-8" )
134+ ),
127135 is_reusable = True ,
128136 )
129137 httpx_mock .add_response (
130138 url = re .compile (r"http://localhost/library/sections/.*/collections\?includeGuids=1" ),
131- json = json .loads (Path ("tests/resources/plex/list-collections.json" ).read_text (encoding = "UTF-8" )),
139+ json = json .loads (
140+ Path ("tests/resources/plex/list-collections.json" ).read_text (encoding = "UTF-8" )
141+ ),
132142 is_reusable = True ,
133143 )
134144 httpx_mock .add_response (
135145 url = re .compile (r"http://localhost/library/metadata/.*\?includeGuids=1" ),
136- json = json .loads (Path ("tests/resources/plex/get-collection.json" ).read_text (encoding = "UTF-8" )),
146+ json = json .loads (
147+ Path ("tests/resources/plex/get-collection.json" ).read_text (encoding = "UTF-8" )
148+ ),
137149 is_reusable = True ,
138150 )
139151
@@ -153,17 +165,23 @@ def test_get_collection(plex_session: Plex | None, httpx_mock: HTTPXMock) -> Non
153165 plex_session = Plex (base_url = "http://localhost" , token = "INVALID" ) # noqa: S106
154166 httpx_mock .add_response (
155167 url = "http://localhost/library/sections" ,
156- json = json .loads (Path ("tests/resources/plex/list-libraries.json" ).read_text (encoding = "UTF-8" )),
168+ json = json .loads (
169+ Path ("tests/resources/plex/list-libraries.json" ).read_text (encoding = "UTF-8" )
170+ ),
157171 is_reusable = True ,
158172 )
159173 httpx_mock .add_response (
160174 url = re .compile (r"http://localhost/library/sections/.*/collections\?includeGuids=1" ),
161- json = json .loads (Path ("tests/resources/plex/list-collections.json" ).read_text (encoding = "UTF-8" )),
175+ json = json .loads (
176+ Path ("tests/resources/plex/list-collections.json" ).read_text (encoding = "UTF-8" )
177+ ),
162178 is_reusable = True ,
163179 )
164180 httpx_mock .add_response (
165181 url = re .compile (r"http://localhost/library/metadata/.*\?includeGuids=1" ),
166- json = json .loads (Path ("tests/resources/plex/get-collection.json" ).read_text (encoding = "UTF-8" )),
182+ json = json .loads (
183+ Path ("tests/resources/plex/get-collection.json" ).read_text (encoding = "UTF-8" )
184+ ),
167185 is_reusable = True ,
168186 )
169187
@@ -184,7 +202,9 @@ def test_list_collection_movies(plex_session: Plex | None, httpx_mock: HTTPXMock
184202 plex_session = Plex (base_url = "http://localhost" , token = "INVALID" ) # noqa: S106
185203 httpx_mock .add_response (
186204 url = re .compile (r"http://localhost/library/metadata/.*/children\?includeGuids=1" ),
187- json = json .loads (Path ("tests/resources/plex/list-collection-movies.json" ).read_text (encoding = "UTF-8" )),
205+ json = json .loads (
206+ Path ("tests/resources/plex/list-collection-movies.json" ).read_text (encoding = "UTF-8" )
207+ ),
188208 is_reusable = True ,
189209 )
190210
@@ -209,7 +229,9 @@ def test_list_movies(plex_session: Plex | None, httpx_mock: HTTPXMock) -> None:
209229 plex_session = Plex (base_url = "http://localhost" , token = "INVALID" ) # noqa: S106
210230 httpx_mock .add_response (
211231 url = "http://localhost/library/sections" ,
212- json = json .loads (Path ("tests/resources/plex/list-libraries.json" ).read_text (encoding = "UTF-8" )),
232+ json = json .loads (
233+ Path ("tests/resources/plex/list-libraries.json" ).read_text (encoding = "UTF-8" )
234+ ),
213235 is_reusable = True ,
214236 )
215237 httpx_mock .add_response (
@@ -234,7 +256,9 @@ def test_get_movie(plex_session: Plex | None, httpx_mock: HTTPXMock) -> None:
234256 plex_session = Plex (base_url = "http://localhost" , token = "INVALID" ) # noqa: S106
235257 httpx_mock .add_response (
236258 url = "http://localhost/library/sections" ,
237- json = json .loads (Path ("tests/resources/plex/list-libraries.json" ).read_text (encoding = "UTF-8" )),
259+ json = json .loads (
260+ Path ("tests/resources/plex/list-libraries.json" ).read_text (encoding = "UTF-8" )
261+ ),
238262 is_reusable = True ,
239263 )
240264 httpx_mock .add_response (
0 commit comments