From b996acaf9c82d23bfdc5d31fd499af7254a9485d Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Wed, 19 Oct 2022 15:44:50 +0200 Subject: [PATCH] OP-3426 - disable unwanted commands Enabling only for test preparation. Updated test_db to currently used avalon_tests --- tests/lib/db_handler.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/lib/db_handler.py b/tests/lib/db_handler.py index ae460e310b..b80a296b60 100644 --- a/tests/lib/db_handler.py +++ b/tests/lib/db_handler.py @@ -228,15 +228,15 @@ class DBHandler: return query # Examples -handler = DBHandler(uri="mongodb://localhost:27017") +# handler = DBHandler(uri="mongodb://localhost:27017") # # -backup_dir = "c:\\projects\\test_zips\\test_maya_publish\\input\\dumps" +# backup_dir = "c:\\projects\\test_zips\\test_maya_publish\\input\\dumps" # # # -#handler.backup_to_dump("avalon", backup_dir, True, collection="test_project") -handler.setup_from_dump("test_db", backup_dir, True, db_name_out="avalon", collection="test_project") -# handler.setup_from_sql_file("test_db", "c:\\projects\\sql\\item.sql", +# handler.backup_to_dump("avalon", backup_dir, True, collection="test_project") +# handler.setup_from_dump("avalon_tests", backup_dir, True, db_name_out="avalon", collection="test_project") +# handler.setup_from_sql_file("avalon_tests", "c:\\projects\\sql\\item.sql", # collection="test_project", # drop=False, mode="upsert") -# handler.setup_from_sql("test_db", "c:\\projects\\sql", +# handler.setup_from_sql("avalon_tests", "c:\\projects\\sql", # collection="test_project", # drop=False, mode="upsert")