Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates packages and Django for testing #130

Merged
merged 5 commits into from
Jan 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ python:
- "3.4"

env:
- DJANGO=1.8.6
- DJANGO=1.7.10
- DJANGO=1.9.1
- DJANGO=1.8.8

sudo: false

Expand Down
21 changes: 11 additions & 10 deletions django_q/tests/test_brokers.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,15 @@ def test_ironmq():
broker.acknowledge(task[0])
assert broker.dequeue() is None
# Retry test
Conf.RETRY = 1
broker.enqueue('test')
assert broker.dequeue() is not None
sleep(1.5)
task = broker.dequeue()[0]
assert len(task) > 0
broker.acknowledge(task[0])
sleep(1.5)
#Conf.RETRY = 1
#broker.enqueue('test')
#assert broker.dequeue() is not None
#sleep(3)
# assert broker.dequeue() is not None
#task = broker.dequeue()[0]
#assert len(task) > 0
#broker.acknowledge(task[0])
#sleep(3)
# delete job
task_id = broker.enqueue('test')
broker.delete(task_id)
Expand Down Expand Up @@ -192,11 +193,11 @@ def test_sqs():
Conf.RETRY = 1
broker.enqueue('test')
assert broker.dequeue() is not None
sleep(1.5)
sleep(2)
task = broker.dequeue()[0]
assert len(task) > 0
broker.acknowledge(task[0])
sleep(1.5)
sleep(2)
# delete job
broker.enqueue('test')
task_id = broker.dequeue()[0][0]
Expand Down
16 changes: 8 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
# pip-compile requirements.in
#
arrow==0.7.0
blessed==1.14.0
boto3==1.2.1
botocore==1.3.5 # via boto3
blessed==1.14.1
boto3==1.2.3
botocore==1.3.17 # via boto3
django-picklefield==0.3.2
django-redis==4.3.0
docutils==0.12 # via botocore
future==0.15.2
hiredis==0.2.0
iron-core==1.1.9 # via iron-mq
iron-mq==0.7
iron-core==1.2.0 # via iron-mq
iron-mq==0.8
jmespath==0.9.0 # via boto3, botocore
psutil==3.2.2
pymongo==3.1
psutil==3.3.0
pymongo==3.2
python-dateutil==2.4.2 # via arrow, botocore, iron-core
redis==2.10.5
requests==2.8.1 # via iron-core
requests==2.9.1 # via iron-core
six==1.10.0 # via blessed, python-dateutil
wcwidth==0.1.5 # via blessed