def tearDownClass(cls) -> None: # Need to remove the tests data before removing the DB file AWS().remove_tests_data(os.environ.get('S3_BUCKET')) remove_db_file() return super().tearDownClass()
def tearDownClass(cls) -> None: del cls.setup_window destroy_program(cls.pc) del cls.pc remove_db_file() return super().tearDownClass()
def setUpClass(cls) -> None: ignore_aws_warning() DatabasePath.change_path( os.path.join(os.getcwd(), 'setup_window_test_db.sqlite3')) remove_db_file() return super().setUpClass()
def setUpClass(cls) -> None: ignore_aws_warning() DatabasePath.change_path(os.path.join(os.getcwd(), 'setup_window_test_db.sqlite3')) remove_db_file() cls.pc = open_program() cls.pc.add_frame_to_paned_window(SetupWindow) update_program_controller_loop(cls.pc) cls.setup_window = cls.pc.select_frame(SetupWindow) return super().setUpClass()
def setUpClass(cls) -> None: ignore_aws_warning() DatabasePath.change_path( os.path.join(os.getcwd(), 'update_database_test_db.sqlite3')) remove_db_file() cls.pc = open_program() cls.pc.add_frame_to_paned_window(UpdateDatabase) update_program_controller_loop(cls.pc) # MYPY ERROR: Incompatible types in assignment (expression has type "Union[MainWindow, SetupWindow, MassUpload, UpdateDatabase]", variable has type "UpdateDatabase") cls.update_window = cls.pc.select_frame(UpdateDatabase) # type: ignore return super().setUpClass()
def tearDownClass(cls) -> None: remove_db_file() return super().tearDownClass()
def setUpClass(cls) -> None: DatabasePath.change_path( os.path.join(os.getcwd(), 'main_window_test_db.sqlite3')) remove_db_file() return super().setUpClass()