Esempio n. 1
0
 def setUp(self):
     # Clean test folder.
     app.config['SESSION_BASE_FOLDER'] = TESTS_BASE_FOLDER
     app.config['LOG_TO_FILE'] = False
     app.config['LOG_LEVEL'] = 'DEBUG'
     utils.register_assets(app)
     utils.setup_logging(app)
     self.clean_folders()
     self.app = app.test_client()
 def setUp(self):
     # Clean test folder.
     app.config['SESSION_BASE_FOLDER'] = SESSION_BASE_FOLDER
     app.config['LOG_TO_FILE'] = False
     app.config['LOG_LEVEL'] = 'DEBUG'
     utils.register_assets(app)
     utils.setup_logging(app)
     self.clean_folders()
     self.fetch_mock_data()
     self.create_temp_data()
     self.app = app.test_client()
     self.load_expected_result_files()
Esempio n. 3
0
    def __init__(self, session_tags, test_session_source):
        """

        :param test_session_source: Folder containing the hanfor test data.
        :param session_tags: List of the actual hanfor sessions (session folders) available in test_session_source.
        """
        self.here = os.path.dirname(os.path.realpath(__file__))
        self.test_base_folder = os.path.join(self.here, 'test_sessions')
        self.test_session_base_folder = os.path.join(self.here,
                                                     'test_sessions', 'tmp')
        self.session_tags = session_tags
        self.test_session_source = test_session_source
        utils.register_assets(app)
        utils.setup_logging(app)
        self.clean_folders()
        self.create_temp_data()
        self.app = app.test_client()
Esempio n. 4
0
 def setUp(self):
     app.config['SESSION_BASE_FOLDER'] = TESTS_BASE_FOLDER
     utils.register_assets(app)
     self.app = app.test_client()
Esempio n. 5
0
 def setUp(self):
     # Clean test folder.
     app.config['SESSION_BASE_FOLDER'] = TESTS_BASE_FOLDER
     utils.register_assets(app)
     self.clean_folders()
     self.app = app.test_client()