test: rename interactive mark to oauth
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ log_cli_level = "INFO"
|
|||||||
log_level = "INFO"
|
log_level = "INFO"
|
||||||
markers = [
|
markers = [
|
||||||
"integration: marks tests as slow (deselect with '-m \"not slow\"')",
|
"integration: marks tests as slow (deselect with '-m \"not slow\"')",
|
||||||
"interactive: marks tests as interactive (deselect with '-m \"not interactive\"')"
|
"oauth: marks tests as oauth (deselect with '-m \"not oauth\"')"
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.commitizen]
|
[tool.commitizen]
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ from nextcloud_mcp_server.client import NextcloudClient
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
pytestmark = pytest.mark.integration
|
pytestmark = [pytest.mark.integration, pytest.mark.oauth]
|
||||||
|
|
||||||
|
|
||||||
class TestOAuthClient:
|
class TestOAuthClient:
|
||||||
@@ -26,7 +26,7 @@ class TestOAuthClient:
|
|||||||
|
|
||||||
async def test_oauth_client_notes_list(self, nc_oauth_client: NextcloudClient):
|
async def test_oauth_client_notes_list(self, nc_oauth_client: NextcloudClient):
|
||||||
"""Test that OAuth client can list notes."""
|
"""Test that OAuth client can list notes."""
|
||||||
notes = await nc_oauth_client.notes.get_notes()
|
notes = await nc_oauth_client.notes.get_all_notes()
|
||||||
|
|
||||||
assert isinstance(notes, list)
|
assert isinstance(notes, list)
|
||||||
logger.info(f"OAuth client successfully listed {len(notes)} notes")
|
logger.info(f"OAuth client successfully listed {len(notes)} notes")
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import pytest
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
pytestmark = [pytest.mark.integration, pytest.mark.interactive]
|
pytestmark = [pytest.mark.integration, pytest.mark.oauth]
|
||||||
|
|
||||||
|
|
||||||
class TestOAuthInteractive:
|
class TestOAuthInteractive:
|
||||||
|
|||||||
Reference in New Issue
Block a user