diff --git a/README.md b/README.md index 3f90fa4..d97fc80 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,11 @@ You can test the SDK by running poetry run ci_test ``` +In local development you can use +``` +poetry run pytest -m "not file_component_sources" +``` + ## Format & Lint You can format code by running ```console diff --git a/pyproject.toml b/pyproject.toml index 2a90b93..f1bf557 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,3 +55,8 @@ ignore = [] [tool.ruff.extend-per-file-ignores] "jellyfish/_openapi_client/**" = ["E501"] + +[tool.pytest.ini_options] +markers = [ + "file_component_sources: Tests requiring files uploaded for File Component" +] diff --git a/tests/test_room_api.py b/tests/test_room_api.py index e62db17..ac4a479 100644 --- a/tests/test_room_api.py +++ b/tests/test_room_api.py @@ -234,6 +234,7 @@ def test_with_options_rtsp(self, room_api: RoomApi): assert response == component_rtsp assert component == component_rtsp + @pytest.mark.file_component_sources def test_with_options_file(self, room_api: RoomApi): _, room = room_api.create_room()