55
66@pytest .mark .asyncio
77async def test_get_search_not_authenticated (app_client_basic_auth , ctx ):
8- """Test public endpoint search without authentication"""
8+ """Test public endpoint [GET / search] without authentication"""
99 if not os .getenv ("BASIC_AUTH" ):
1010 pytest .skip ()
1111 params = {"id" : ctx .item ["id" ]}
@@ -18,7 +18,7 @@ async def test_get_search_not_authenticated(app_client_basic_auth, ctx):
1818
1919@pytest .mark .asyncio
2020async def test_post_search_authenticated (app_client_basic_auth , ctx ):
21- """Test protected post search with reader auhtentication"""
21+ """Test protected endpoint [POST / search] with reader auhtentication"""
2222 if not os .getenv ("BASIC_AUTH" ):
2323 pytest .skip ()
2424 params = {"id" : ctx .item ["id" ]}
@@ -34,7 +34,7 @@ async def test_post_search_authenticated(app_client_basic_auth, ctx):
3434async def test_delete_resource_anonymous (
3535 app_client_basic_auth ,
3636):
37- """Test protected delete collection without auhtentication"""
37+ """Test protected endpoint [DELETE /collections/{collection_id}] without auhtentication"""
3838 if not os .getenv ("BASIC_AUTH" ):
3939 pytest .skip ()
4040
@@ -46,7 +46,7 @@ async def test_delete_resource_anonymous(
4646
4747@pytest .mark .asyncio
4848async def test_delete_resource_invalid_credentials (app_client_basic_auth , ctx ):
49- """Test protected delete collection with admin auhtentication """
49+ """Test protected endpoint [DELETE /collections/{collection_id}] with invalid credentials """
5050 if not os .getenv ("BASIC_AUTH" ):
5151 pytest .skip ()
5252
@@ -62,7 +62,7 @@ async def test_delete_resource_invalid_credentials(app_client_basic_auth, ctx):
6262
6363@pytest .mark .asyncio
6464async def test_delete_resource_insufficient_permissions (app_client_basic_auth , ctx ):
65- """Test protected delete collection with reader auhtentication """
65+ """Test protected endpoint [DELETE /collections/{collection_id}] with reader user which has insufficient permissions """
6666 if not os .getenv ("BASIC_AUTH" ):
6767 pytest .skip ()
6868
@@ -80,7 +80,7 @@ async def test_delete_resource_insufficient_permissions(app_client_basic_auth, c
8080
8181@pytest .mark .asyncio
8282async def test_delete_resource_sufficient_permissions (app_client_basic_auth , ctx ):
83- """Test protected delete collection with admin auhtentication"""
83+ """Test protected endpoint [DELETE /collections/{collection_id}] with admin user auhtentication which has sufficient permissions """
8484 if not os .getenv ("BASIC_AUTH" ):
8585 pytest .skip ()
8686
0 commit comments