diff --git a/pyproject.toml b/pyproject.toml index bc6e08c..cb79bb8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ log_cli_level = "INFO" log_level = "INFO" markers = [ "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] diff --git a/tests/integration/test_oauth.py b/tests/integration/test_oauth.py index 7f9d1a7..c66308d 100644 --- a/tests/integration/test_oauth.py +++ b/tests/integration/test_oauth.py @@ -8,7 +8,7 @@ from nextcloud_mcp_server.client import NextcloudClient logger = logging.getLogger(__name__) -pytestmark = pytest.mark.integration +pytestmark = [pytest.mark.integration, pytest.mark.oauth] class TestOAuthClient: @@ -26,7 +26,7 @@ class TestOAuthClient: async def test_oauth_client_notes_list(self, nc_oauth_client: NextcloudClient): """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) logger.info(f"OAuth client successfully listed {len(notes)} notes") diff --git a/tests/integration/test_oauth_interactive.py b/tests/integration/test_oauth_interactive.py index 09f991a..76e93cb 100644 --- a/tests/integration/test_oauth_interactive.py +++ b/tests/integration/test_oauth_interactive.py @@ -6,7 +6,7 @@ import pytest logger = logging.getLogger(__name__) -pytestmark = [pytest.mark.integration, pytest.mark.interactive] +pytestmark = [pytest.mark.integration, pytest.mark.oauth] class TestOAuthInteractive: