mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 03:01:21 +02:00
PR #920 was merged without a CHANGELOG entry and without test coverage for the location filter dropdown (every other new control — name search, model search, serial search, whitespace trim, clear button, status filter, empty states, combined filters — already had tests). Adds: - `filters by location via dropdown` — overrides the printers mock so printer 1 has location 'Workshop' and printer 2 has location 'Office', then verifies that selecting each location shows only the matching printer and that switching between the two works. - `hides location filter when no printers have a location` — both printers get a null location, and the test asserts the status filter dropdown is still rendered but the location filter dropdown is not. - CHANGELOG entry under [0.2.3b3] > New Features crediting the contributor and documenting the search/filter feature, including the WebSocket-reactive status filter behavior.
12 lines
244 B
Bash
Executable File
12 lines
244 B
Bash
Executable File
#!/bin/sh
|
|
|
|
cd backend
|
|
ruff check && ruff format --check
|
|
|
|
#if [ "$1" = "--full" ]; then
|
|
../venv/bin/python3 -m pytest tests/ -v -n 30
|
|
#else
|
|
#../venv/bin/python3 -m pytest tests/ -v -n 30 --ignore=tests/unit/services/test_bambu_ftp.py
|
|
#fi
|
|
#cd ..
|