File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -368,14 +368,14 @@ def test_myplex_ping(account):
368368 assert account .ping ()
369369
370370
371- def test_myplex_jwt_login (account ):
371+ def test_myplex_jwt_login (account , tmp_path ):
372372 jwtlogin = MyPlexJWTLogin (
373373 token = account .authToken ,
374374 scopes = ['username' , 'email' , 'friendly_name' ]
375375 )
376- jwtlogin .generateKeypair (keyfiles = ('private.key' , 'public.key' ), overwrite = True )
376+ jwtlogin .generateKeypair (keyfiles = (tmp_path / 'private.key' , tmp_path / 'public.key' ), overwrite = True )
377377 with pytest .raises (FileExistsError ):
378- jwtlogin .generateKeypair (keyfiles = ('private.key' , 'public.key' ))
378+ jwtlogin .generateKeypair (keyfiles = (tmp_path / 'private.key' , tmp_path / 'public.key' ))
379379 jwtlogin .registerDevice ()
380380 jwtToken = jwtlogin .refreshJWT ()
381381 assert jwtlogin .decodePlexJWT ()
You can’t perform that action at this time.
0 commit comments