コード例 #1
0
    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()
コード例 #2
0
    def tearDownClass(cls) -> None:
        del cls.setup_window

        destroy_program(cls.pc)
        del cls.pc

        remove_db_file()
        return super().tearDownClass()
コード例 #3
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()
コード例 #4
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()
コード例 #5
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()
コード例 #6
0
 def tearDownClass(cls) -> None:
     remove_db_file()
     return super().tearDownClass()
コード例 #7
0
    def setUpClass(cls) -> None:
        DatabasePath.change_path(
            os.path.join(os.getcwd(), 'main_window_test_db.sqlite3'))

        remove_db_file()
        return super().setUpClass()