Closed
Bug 876954
Opened 12 years ago
Closed 12 years ago
[mozillapulse] Basic tests
Categories
(Webtools :: Pulse, defect)
Webtools
Pulse
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mcote, Unassigned)
Details
Attachments
(1 file)
|
22.37 KB,
patch
|
jgriffin
:
review+
dkl
:
feedback+
|
Details | Diff | Splinter Review |
Before switching out the RabbitMQ client (bug 623305), it would be nice to have some basic tests.
| Assignee | ||
Comment 1•12 years ago
|
||
This adds some basic tests. They rely on a RabbitMQ server, so a Vagrantfile has been added to ease setup. See test/README.md for details.
I also added license headers to all files, license info to setup.py, and a small change to consumers.GenericConsumer to facilitate the tests.
jgriffin is most familiar with this code to I asked him for review. dkl, I requested feedback from you mostly to keep you in the loop & help you get a feel for the code, but if you have any comments, please go right ahead and mention them. :)
Attachment #755079 -
Flags: review?(jgriffin)
Attachment #755079 -
Flags: feedback?(dkl)
Comment 2•12 years ago
|
||
Comment on attachment 755079 [details] [diff] [review]
Basic tests, add license headers
Review of attachment 755079 [details] [diff] [review]:
-----------------------------------------------------------------
Looks awesome! I didn't actually run it though.
Since it's such a critical piece of metadata, might be a good idea to verify the message's routing key as well, e.g.,
self.assertEqual(msg.routing_key, received_data['_meta']['routing_key'])
Attachment #755079 -
Flags: review?(jgriffin) → review+
| Assignee | ||
Comment 3•12 years ago
|
||
Good call. Added that line. Also switched the deprecated usage of assertEquals() to assertEqual(), and changed "payload" to "received_payload" for consistency and clarity.
Updated•12 years ago
|
Attachment #755079 -
Flags: feedback?(dkl) → feedback+
| Assignee | ||
Comment 4•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•