refactor: isolate rpc server config composition
This commit is contained in:
@@ -1,18 +1,29 @@
|
||||
# pitfalls / guide
|
||||
|
||||
## extra fields
|
||||
|
||||
prefer asserts actual['field'] == expected['field'] over assert actual == expected unless we know better (eg. no extra fields allowed)
|
||||
|
||||
## tests
|
||||
|
||||
Prefer pytest `tmp_path` for test-local filesystem state. Avoid fixed paths under `local_temp_root()` for tests that create durable files unless the test explicitly cleans or needs cross-process persistence; stale files there can change later test runs.
|
||||
|
||||
Now that pytest-asyncio is installed, prefer `async def test_x()`
|
||||
instead of `def test_x(): async def scenario(): ...; asyncio.run(scenario())`
|
||||
|
||||
more later
|
||||
## mgmt
|
||||
|
||||
More packages please. we spent a while cleaning flatten packages/modules; putting files of similar interests in folders and sub-folders.
|
||||
example: some of tests/ and some packages. (simple example: src/pack/foo_bar.py -> src/pack/foo/bar.py)
|
||||
|
||||
Lets just do that from the start this time, ok?
|
||||
|
||||
## Docs mgmt
|
||||
|
||||
read docs/AGENTS.md
|
||||
|
||||
more later
|
||||
|
||||
# Test suite
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user