Skip to content

Commit

Permalink
Switch test as well
Browse files Browse the repository at this point in the history
  • Loading branch information
tcezard committed Mar 20, 2024
1 parent b011213 commit 68189db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/internal/test_mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class TestMongoDatabase(TestCommon):
def setUp(self) -> None:
self.test_mongo_db = MongoDatabase(uri=self.uri, db_name=self.dump_db_name)
self.dump_dir = os.path.join(self.resources_folder, self.dump_db_name)
run_command_with_output("Drop target test database if it already exists...", f"mongo {self.dump_db_name} "
f"--eval 'db.dropDatabase()'")
run_command_with_output("Drop target test database if it already exists...",
f"mongosh --eval 'db.dropDatabase()' {self.dump_db_name} ")
run_command_with_output("Import test database...", f"mongorestore --dir {self.dump_dir}")

def tearDown(self) -> None:
Expand Down

0 comments on commit 68189db

Please sign in to comment.