Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ jobs:

- name: Test with pytest
run: uv run pytest
env:
PYTHONPATH: src/

- name: Minimize uv cache
run: uv cache prune --ci
3 changes: 0 additions & 3 deletions .run/run pytest.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
<module name="eat-api"/>
<option name="INTERPRETER_OPTIONS" value=""/>
<option name="PARENT_ENVS" value="true"/>
<envs>
<env name="PYTHONPATH" value="src/"/>
</envs>
<option name="SDK_HOME" value="$PROJECT_DIR$/venv/bin/python"/>
<option name="WORKING_DIRECTORY" value=""/>
<option name="IS_MODULE_SDK" value="false"/>
Expand Down
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@ RUN curl -LsSf https://astral.sh/uv/install.sh | sh

COPY . .

ENV PYTHONPATH src/

CMD ["uv run pytest"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,5 @@ This will also be run by CI if you push to the repository.

### Run tests:

- All the tests: `PYTHONPATH=src/ uv run pytest`
- A specific test class: `PYTHONPATH=src/ uv run pytest src/test/test_menu_parser.py::MenuParserTest`
- All the tests: `uv run pytest`
- A specific test class: `uv run pytest src/test/test_menu_parser.py::MenuParserTest`
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ no_implicit_reexport = true
strict_equality = true
pretty = true

[tool.pytest]
ini_options = { pythonpath = "src" }

[tool.ruff]
line-length = 120

Expand Down