Make it easier to run synchronous unit tests without a real broker
Bug #1588213 reported by
Free Ekanayaka
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
txAMQP |
Fix Committed
|
Undecided
|
Free Ekanayaka |
Bug Description
Running a real broker for integration tests is nice and lp:rabbitfixture makes it convenient.
However it'd be good to add support in txamqp to also make it easy to run pure unit tests without a connected broker (for easy of development and for exercising edge conditions that are hard to produce with a real broker).
Related branches
lp://staging/~free.ekanayaka/txamqp/synchronous-testing-helpers
- Esteve Fernandez: Approve
-
Diff: 355 lines (+270/-12)6 files modifiedsrc/txamqp/factory.py (+3/-8)
src/txamqp/protocol.py (+4/-3)
src/txamqp/spec.py (+6/-1)
src/txamqp/test/test_factory.py (+8/-0)
src/txamqp/test/test_testing.py (+52/-0)
src/txamqp/testing.py (+197/-0)
Changed in txamqp: | |
status: | New → In Progress |
assignee: | nobody → Free Ekanayaka (free.ekanayaka) |
summary: |
- Make it easier to run unit tests without a real broker + Make it easier to run synchronous unit tests without a real broker |
Changed in txamqp: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.