@@ -21,7 +21,7 @@ def test_get_user_404(nc):
2121 nc .users .get ("non existing user" )
2222
2323
24- @pytest .mark .skipif (not isinstance (NC_TO_TEST [:1 ], Nextcloud ), reason = "Not available for NextcloudApp." )
24+ @pytest .mark .skipif (not isinstance (NC_TO_TEST [:1 ][ 0 ] , Nextcloud ), reason = "Not available for NextcloudApp." )
2525@pytest .mark .parametrize ("nc" , NC_TO_TEST [:1 ])
2626def test_create_user (nc ):
2727 try :
@@ -33,7 +33,7 @@ def test_create_user(nc):
3333 nc .users .create (TEST_USER_NAME , password = TEST_USER_PASSWORD )
3434
3535
36- @pytest .mark .skipif (not isinstance (NC_TO_TEST [:1 ], Nextcloud ), reason = "Not available for NextcloudApp." )
36+ @pytest .mark .skipif (not isinstance (NC_TO_TEST [:1 ][ 0 ] , Nextcloud ), reason = "Not available for NextcloudApp." )
3737@pytest .mark .parametrize ("nc" , NC_TO_TEST [:1 ])
3838def test_delete_user (nc ):
3939 try :
@@ -45,7 +45,7 @@ def test_delete_user(nc):
4545 nc .users .delete (TEST_USER_NAME )
4646
4747
48- @pytest .mark .skipif (not isinstance (NC_TO_TEST [:1 ], Nextcloud ), reason = "Not available for NextcloudApp." )
48+ @pytest .mark .skipif (not isinstance (NC_TO_TEST [:1 ][ 0 ] , Nextcloud ), reason = "Not available for NextcloudApp." )
4949@pytest .mark .parametrize ("nc" , NC_TO_TEST [:1 ])
5050def test_list_users (nc ):
5151 try :
@@ -62,7 +62,7 @@ def test_list_users(nc):
6262 nc .users .delete (TEST_USER_NAME )
6363
6464
65- @pytest .mark .skipif (not isinstance (NC_TO_TEST [:1 ], Nextcloud ), reason = "Not available for NextcloudApp." )
65+ @pytest .mark .skipif (not isinstance (NC_TO_TEST [:1 ][ 0 ] , Nextcloud ), reason = "Not available for NextcloudApp." )
6666@pytest .mark .parametrize ("nc" , NC_TO_TEST [:1 ])
6767def test_enable_disable_user (nc ):
6868 try :
0 commit comments