Skip to content

Commit

Permalink
Allow for ignoring file tests locally (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
roznawsk authored Dec 28, 2023
1 parent 042eef9 commit a2bb59c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
1 change: 1 addition & 0 deletions tests/test_room_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit a2bb59c

Please sign in to comment.