test: two gaps in the connector's routed-transport check after #148
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- backend-api-design, testing
Research direction
Read _takes_connect_by in src/neolith/_connector.py and test_each_entry_reads_with_its_own_receiver in tests/test_routing.py. Add coverage for keyword-only connect_by with and without a default, and for an in-process receiver returning duplicate n keys. Done when the routed signature is accepted, the missing-default signature is refused, and the in-process result is asserted as Answer(n=2).
Written by the indexing model from the issue text.
Description
Two non-blocking findings from the review of #148, held back because the PR was approved:
_takes_connect_by(src/neolith/_connector.py) admits acallwhoseconnect_byhas no default, such asdef call(self, action, request, context, *, connect_by). The connector leavesconnect_byout when no share applies (the last entry, a non-idempotent action, no deadline), so such a call endsinternal. Fix: requirefound.default is not inspect.Parameter.empty. Test a keyword-onlyconnect_by=None, which is routed, and a keyword-onlyconnect_bywith no default, which is refused.test_each_entry_reads_with_its_own_receiver(tests/test_routing.py) asserts only the remote half. Add a first entry withReceiver.IN_PROCESSthat returns{"n":1,"n":2}and assertAnswer(n=2).
Part of #13.
- Dominant language
- Python
- Stars
- 1
- Forks
- 0
- Avg merge
- 6h 34m
- Merged PRs (30d)
- 108
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from stack314/django-neolith
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
stack314/django-neolith#180 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
stack314/django-neolith#178 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
stack314/django-neolith#177 ·
Maintainers usually reply within 1 day
-
help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
stack314/django-neolith#141 ·
Maintainers usually reply within 1 day
-
fix: refuse an unhashable HOST or PORT instead of raising TypeErrorPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
stack314/django-neolith#140 · 1 comment ·
Maintainers usually reply within 1 day
All issues in stack314/django-neolith
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
bug (unverified)
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
scikit-hep/awkward#4581 · 1 comment ·
Maintainers usually reply within 1 day
-
ci-cd priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
LearningCircuit/local-deep-research#9163 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
supersonic-lumina/ENM156#50 ·
Maintainers usually reply within 2 days