Add calculator tests and a local quality gate

This commit is contained in:
venomade committed 2026-11-02 10:43:47 +00:00
1 parent 016ac885f7
commit 8dd5bcec50
5 files changed
+42

No files matched your search

+12
View File
@@ -14,3 +14,15 @@ Run: `./run.sh`
- Lastly enter a second number
- Read the result, printed as `Result: ` followed by the answer.
- When done stop with `Ctrl+c`
## Testing
- Enter a `venv` and install `pytest`:
```sh
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements-dev.txt
python3 -m pytest --version
```
- Run: `./test.sh`
- All tests should return `PASSED` and the return code of `test.sh` should be `1`.