11import pytest
22
3- from nc_py_api import NextcloudException
3+ from nc_py_api import NextcloudException , Nextcloud
44
55from gfixture import NC_TO_TEST
66
@@ -21,6 +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." )
2425@pytest .mark .parametrize ("nc" , NC_TO_TEST [:1 ])
2526def test_create_user (nc ):
2627 try :
@@ -32,6 +33,7 @@ def test_create_user(nc):
3233 nc .users .create (TEST_USER_NAME , password = TEST_USER_PASSWORD )
3334
3435
36+ @pytest .mark .skipif (not isinstance (NC_TO_TEST [:1 ], Nextcloud ), reason = "Not available for NextcloudApp." )
3537@pytest .mark .parametrize ("nc" , NC_TO_TEST [:1 ])
3638def test_delete_user (nc ):
3739 try :
@@ -43,6 +45,7 @@ def test_delete_user(nc):
4345 nc .users .delete (TEST_USER_NAME )
4446
4547
48+ @pytest .mark .skipif (not isinstance (NC_TO_TEST [:1 ], Nextcloud ), reason = "Not available for NextcloudApp." )
4649@pytest .mark .parametrize ("nc" , NC_TO_TEST [:1 ])
4750def test_list_users (nc ):
4851 try :
@@ -59,6 +62,7 @@ def test_list_users(nc):
5962 nc .users .delete (TEST_USER_NAME )
6063
6164
65+ @pytest .mark .skipif (not isinstance (NC_TO_TEST [:1 ], Nextcloud ), reason = "Not available for NextcloudApp." )
6266@pytest .mark .parametrize ("nc" , NC_TO_TEST [:1 ])
6367def test_enable_disable_user (nc ):
6468 try :
0 commit comments