Make generic driver tests pybuild-safe
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user