Skip to content

Commit de35cc8

Browse files
committed
we don't actually need auth in tests
1 parent 5990d7e commit de35cc8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

flask_pymongo/tests/test_config.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,12 @@ def setUp(self):
1717
super(FlaskPyMongoConfigTest, self).setUp()
1818

1919
conn = pymongo.MongoClient(port=self.port)
20-
conn.test_db.command(
21-
"createUser",
22-
"flask",
23-
pwd="pymongo",
24-
roles=["readWrite"],
25-
)
20+
conn.test.command("ping") # wait for server
2621

2722
def tearDown(self):
2823
super(FlaskPyMongoConfigTest, self).tearDown()
2924

3025
conn = pymongo.MongoClient(port=self.port)
31-
conn.test_db.command("dropUser", "flask")
3226

3327
conn.drop_database(self.dbname)
3428
conn.drop_database(self.dbname + "2")

0 commit comments

Comments
 (0)