File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
qcarchivetesting/qcarchivetesting Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22
33import logging
4- from copy import deepcopy
54
65from qcarchivetesting import geoip_path , geoip_filename , ip_tests_enabled
76from qcfractal .config import DatabaseConfig
@@ -78,10 +77,8 @@ def __init__(self, db_path: str):
7877 assert self .harness .is_alive () and not self .harness .can_connect ()
7978
8079 def get_new_harness (self , db_name : str ) -> QCATestingPostgresHarness :
81- harness_config = deepcopy (self .harness .config .model_dump ())
82- harness_config ["database_name" ] = db_name
83-
84- new_harness = QCATestingPostgresHarness (DatabaseConfig (** harness_config ))
80+ db_config = self .harness .config .model_copy (deep = True , update = {"database_name" : db_name })
81+ new_harness = QCATestingPostgresHarness (db_config )
8582 new_harness .create_database (create_tables = True )
8683 return new_harness
8784
You can’t perform that action at this time.
0 commit comments