summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAllen Sanabria <asanabria@linuxdynasty.org>2014-06-30 00:20:15 -0400
committerAllen Sanabria <asanabria@linuxdynasty.org>2014-06-30 00:20:15 -0400
commitdaee35c1cf4a8942d687ddbd4ccfc75f55e498e6 (patch)
treed710879fe960cd9c791e13082b1bfc5c7b9c3306 /tests
parent84ad35d4941e1a9332678554258cd2e783f83b59 (diff)
downloadapscheduler-daee35c1cf4a8942d687ddbd4ccfc75f55e498e6.tar.gz
Added rethinkdb to test suite
Diffstat (limited to 'tests')
-rw-r--r--tests/test_jobstores.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_jobstores.py b/tests/test_jobstores.py
index 191d4fd..35e8c96 100644
--- a/tests/test_jobstores.py
+++ b/tests/test_jobstores.py
@@ -38,6 +38,19 @@ def sqlalchemyjobstore(request):
@pytest.fixture
+def rethinkdbjobstore(request):
+ def finish():
+ conn = store.conn
+ store.r.db_drop(store.database).run(conn)
+ store.shutdown()
+
+ rethinkdb = pytest.importorskip('apscheduler.jobstores.rethinkdb')
+ store = rethinkdb.RethinkDBJobStore(database='apscheduler_unittest')
+ request.addfinalizer(finish)
+ return store
+
+
+@pytest.fixture
def mongodbjobstore(request):
def finish():
connection = store.collection.database.connection