piker/tests
Gud Boi d2b539edbd Update `conftest.py` for `tractor` runtime API changes
Port test fixtures to match `tractor`'s updated
registry and channel APIs.

Deats,
- use `registry_addrs=[reg_addr]` (list) instead of
  `registry_addr=reg_addr` in `maybe_open_pikerd()`.
- `wait_for_actor()` now takes `registry_addr=`
  kwarg instead of `arbiter_sockaddr=`.
- access `portal.chan` (not `.channel`) and unwrap
  remote addr via `raddr.unwrap()`.
- yield `raddr._host`/`raddr._port` instead of
  tuple-indexing.
- drop random port generation; accept `reg_addr`
  fixture from `tractor`'s builtin pytest plugin.

Also,
- add `reg_addr: tuple` param to `open_test_pikerd()`
  fixture (sourced from `tractor._testing.pytest`).
- type-narrow `reg_addr` to `tuple[str, int|str]`.
- drop unused `import random`.

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
2026-03-19 13:40:19 -04:00
..
_inputs Add first account cumsize test; known to fail Bo 2023-07-14 17:54:13 -04:00
conftest.py Update `conftest.py` for `tractor` runtime API changes 2026-03-19 13:40:19 -04:00
test_accounting.py Draft a gt-one-`.fqme`-in-txns/account-file test 2026-01-07 13:41:07 -05:00
test_cli.py Skip CLI tests due to questrade dependency for now 2021-05-22 15:12:12 -04:00
test_docker_services.py Skip marketstore docker tests, we're gonna drop it.. 2023-06-27 13:42:08 -04:00
test_dpi_font.py fixed spacing 2026-03-17 21:15:19 -04:00
test_ems.py Drop `open_pps()` from ems tests 2026-01-07 13:41:07 -05:00
test_feeds.py Move tmpdir creation into separate fixture 2023-05-22 12:03:32 -04:00
test_questrade.py Spurious first-draft of EG collapsing 2026-01-06 22:27:58 -05:00
test_services.py Parametrize ems service test to cancel with API and kbi 2023-05-28 14:28:56 -04:00
test_watchlists.py Capture the right logger 2019-02-10 17:29:08 -05:00