Exemplo n.º 1
0
    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()
Exemplo n.º 2
0
    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()
Exemplo n.º 3
0
    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 setUpClass(cls) -> None:
        DatabasePath.change_path(
            os.path.join(os.getcwd(), 'main_window_test_db.sqlite3'))

        remove_db_file()
        return super().setUpClass()