Make generic driver tests pybuild-safe

This commit is contained in:
Storm Dragon
2026-09-12 12:33:54 -04:00
parent 9e6e806947
commit cbe2abc7e3
5 changed files with 32 additions and 10 deletions
+9
View File
@@ -59,6 +59,15 @@ pytest tests/ --cov=src/fenrirscreenreader --cov-report=html
can run multiple foreground X terminal instances. Ask user to run tests that
need real Fenrir instances or root access.
### Packaging Test Layouts
- Debian `pybuild` runs copied tests from a nested `.pybuild/.../build` tree
and may omit top-level source directories such as `config/`.
- Tests that inspect source resources must locate them by walking upward from
the resolved test path; do not assume a fixed `Path(__file__).parents[N]`.
- Packaging-sensitive test changes should be checked from both the source tree
and a representative nested build directory under `/tmp`.
## Creating Commands
Use `commands/command_template.py` as base. Required methods: