Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Open
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
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
language: python
python:
- "2.7"
services: mongodb
# command to install dependencies
before_install:
- "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10"
- "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list"
- "sudo apt-get update"
- "sudo apt-get install mongodb-org-server”

install: "pip install -r requirements.txt"
# # command to run tests
script:
Expand Down
3 changes: 3 additions & 0 deletions pymjq/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def setUpClass(cls):
client.pymongo_test.jobqueue.drop()
cls.db = client.pymongo_test

def tearDown(self):
self.db['jobqueue'].drop()

def test_init(self):
jq = JobQueue(self.db)
self.assertTrue(jq.valid())
Expand Down