Rename test scripts: check_remote.py and check_concentrator.py.
Former tests/test_read_remote.py and tests/test_concentrator_instantiate.py; update docstring examples and pytest entry test_concentrator. Made-with: Cursor
This commit is contained in:
parent
bca18ecf1e
commit
1a01a63a5d
|
|
@ -10,16 +10,16 @@ reach the Pi (or host) where ``fiwi.py`` and BrainStem are installed.
|
|||
|
||||
**Standalone** (any current working directory)::
|
||||
|
||||
python tests/test_concentrator_instantiate.py
|
||||
python tests/test_concentrator_instantiate.py --config uax24
|
||||
python tests/test_concentrator_instantiate.py -c uax4
|
||||
python tests/test_concentrator_instantiate.py --config /path/to/custom.ini
|
||||
python tests/check_concentrator.py
|
||||
python tests/check_concentrator.py --config uax24
|
||||
python tests/check_concentrator.py -c uax4
|
||||
python tests/check_concentrator.py --config /path/to/custom.ini
|
||||
|
||||
``--config`` is the same as ``FIWI_CONFIG``: a profile name (``config/<name>.ini``) or an absolute path to a ``.ini`` file.
|
||||
|
||||
With pytest, set the profile in the environment (argv is not parsed)::
|
||||
|
||||
FIWI_CONFIG=uax24 pytest tests/test_concentrator_instantiate.py
|
||||
FIWI_CONFIG=uax24 pytest tests/check_concentrator.py
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
|
@ -121,7 +121,7 @@ def _print_inventory(c: FiWiConcentrator) -> None:
|
|||
_print_remote_hub_hostcards()
|
||||
|
||||
|
||||
def test_fiwi_concentrator_instantiates() -> None:
|
||||
def test_concentrator() -> None:
|
||||
c = _instantiate_concentrator()
|
||||
c.disconnect()
|
||||
|
||||
|
|
@ -11,10 +11,10 @@ Does **not** load BrainStem locally. Default: one SSH **readiness** probe (repo
|
|||
|
||||
**Standalone**::
|
||||
|
||||
python tests/test_read_remote.py -c uax24
|
||||
python tests/test_read_remote.py -c uax24 --probe-only
|
||||
python tests/test_read_remote.py -c uax24 --list-only
|
||||
python tests/test_read_remote.py -c uax24 --invoke show_hostcards
|
||||
python tests/check_remote.py -c uax24
|
||||
python tests/check_remote.py -c uax24 --probe-only
|
||||
python tests/check_remote.py -c uax24 --list-only
|
||||
python tests/check_remote.py -c uax24 --invoke show_hostcards
|
||||
|
||||
``--config`` matches ``FIWI_CONFIG`` (profile name or absolute ``*.ini`` path).
|
||||
"""
|
||||
Loading…
Reference in New Issue