mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
Update pytest how to for BIND system tests: add fixture reference
parent
9ea245a926
commit
f4c08b74ff
@ -1,10 +1,14 @@
|
||||
---
|
||||
title: pytest how-to for BIND system tests
|
||||
---
|
||||
|
||||
See [[/bin/tests/system/README|/../blob/main/bin/tests/system/README.md]] first
|
||||
|
||||
# Debugging
|
||||
- See "Test Artifacts" chapter in README first, for real!
|
||||
- If test hangs on startup or exits one minute after start - most probably servers did not start. That's typically a config error.
|
||||
- `pytest --log-level DEBUG` should show which server does not respond to TCP queries
|
||||
- See also `pytest.log.txt` in directory with artifacts.
|
||||
- See also `pytest.log.txt` in directory with artifacts.
|
||||
|
||||
# Magic variables
|
||||
Pytest has framework for providing 'context' to tests in a consistent manner. Their term for it is 'fixture' and it manifests itself as a function parameter with name which is nowhere to be found. See https://docs.pytest.org/en/7.1.x/explanation/fixtures.html
|
Loading…
x
Reference in New Issue
Block a user