Skip to content

Commit 526b9eb

Browse files
committed
Drop unittests
1 parent de60f4a commit 526b9eb

File tree

8 files changed

+0
-1155
lines changed

8 files changed

+0
-1155
lines changed

tests/__init__.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +0,0 @@
1-
import unittest
2-
3-
import flask
4-
import mongoengine
5-
6-
7-
class FlaskMongoEngineTestCase(unittest.TestCase):
8-
"""Parent class of all test cases"""
9-
10-
def setUp(self):
11-
self.app = flask.Flask(__name__)
12-
self.app.config["MONGODB_DB"] = "test_db"
13-
self.app.config["TESTING"] = True
14-
self.ctx = self.app.app_context()
15-
self.ctx.push()
16-
# Mongoengine keep a global state of the connections that must be
17-
# reset before each test.
18-
# Given it doesn't expose any method to get the list of registered
19-
# connections, we have to do the cleaning by hand...
20-
mongoengine.connection._connection_settings.clear()
21-
mongoengine.connection._connections.clear()
22-
mongoengine.connection._dbs.clear()
23-
24-
def tearDown(self):
25-
self.ctx.pop()

tests/test_basic_app.py

Lines changed: 0 additions & 75 deletions
This file was deleted.

tests/test_connection.py

Lines changed: 0 additions & 199 deletions
This file was deleted.

0 commit comments

Comments
 (0)