Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coolamqp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
coolamqp
Commits
45d9e0e5
Commit
45d9e0e5
authored
8 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
+tests
parent
b2fecb5d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LICENSE
+1
-1
1 addition, 1 deletion
LICENSE
tests/test_cluster.py
+7
-7
7 additions, 7 deletions
tests/test_cluster.py
with
8 additions
and
8 deletions
LICENSE
+
1
−
1
View file @
45d9e0e5
The MIT License (MIT)
Copyright (c) 2016
Piotr Maślanka
Copyright (c) 2016
DMS Serwis s.c.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
...
...
This diff is collapsed.
Click to expand it.
tests/test_cluster.py
+
7
−
7
View file @
45d9e0e5
...
...
@@ -25,13 +25,13 @@ class MyTestCase(unittest.TestCase):
self
.
assertIsInstance
(
p
,
MessageReceived
)
self
.
assertEquals
(
p
.
message
.
body
,
b
'
what the fuck
'
)
#
def test_consumer_cancelled_on_queue_deletion(self):
#
myq = Queue('myqueue', exclusive=True)
#
#
self.amqp.consume(myq)
#
self.amqp.delete_queue(myq)
#
#
self.assertIsInstance(self.amqp.drain(wait=10), ConsumerCancelled)
def
test_consumer_cancelled_on_queue_deletion
(
self
):
myq
=
Queue
(
'
myqueue
'
,
exclusive
=
True
)
self
.
amqp
.
consume
(
myq
)
self
.
amqp
.
delete_queue
(
myq
)
self
.
assertIsInstance
(
self
.
amqp
.
drain
(
wait
=
10
),
ConsumerCancelled
)
def
test_consumer_cancelled_on_consumer_cancel
(
self
):
myq
=
Queue
(
'
myqueue
'
,
exclusive
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment