summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2015-12-09 19:11:19 +0200
committerAlex Grönholm <alex.gronholm@nextday.fi>2015-12-09 20:20:37 +0200
commitc7ffa733c9b23c4605b75f092a794446fa3abdf4 (patch)
tree6ac55943e5bd17db77563af0ba9f9a35793a5f4d
parentca4a2524f210cec67ffa743274e7711072ea65e7 (diff)
downloadapscheduler-c7ffa733c9b23c4605b75f092a794446fa3abdf4.tar.gz
Fixed the MongoDB job store repr() test to work with newer versions of PyMongo
-rw-r--r--tests/test_jobstores.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_jobstores.py b/tests/test_jobstores.py
index 69337a6..c246a8f 100644
--- a/tests/test_jobstores.py
+++ b/tests/test_jobstores.py
@@ -251,7 +251,7 @@ def test_repr_sqlalchemyjobstore(sqlalchemyjobstore):
def test_repr_mongodbjobstore(mongodbjobstore):
- assert repr(mongodbjobstore) == "<MongoDBJobStore (client=MongoClient('localhost', 27017))>"
+ assert repr(mongodbjobstore).startswith("<MongoDBJobStore (client=MongoClient(")
def test_repr_redisjobstore(redisjobstore):