Ejemplo n.º 1
0
def setup_module(module):
    """ setup any state specific to the execution of the given module."""
    # deletes data from tables as necessary
    ctf.reset_test_tables(RUN_ID, STEP_CONFIGURATION[STEP_NAME])

    # Import survey and external data.
    import_data_dir = r'tests\data\import_data\dec'
    ctf.import_test_data_into_database(import_data_dir, RUN_ID)

    # populates test data within pv table
    conn = database_connection()
    ctf.populate_test_pv_table(conn, RUN_ID, PV_RUN_ID)
def setup_module(module):
    """ Setup any state specific to the execution of the given module. """

    # Assign variables
    december_survey_data_path = (TEST_DATA_DIR + r'\surveydata.csv')

    # Deletes data from tables as necessary
    ctf.reset_test_tables(RUN_ID, STEP_CONFIGURATION[STEP_NAME])

    # Import survey data
    ctf.import_survey_data_into_database(december_survey_data_path, RUN_ID)

    # populates test data within pv table
    conn = database_connection()
    ctf.populate_test_pv_table(conn, RUN_ID, PV_RUN_ID)
def setup_module(module):
    """ Setup any state specific to the execution of the given module. """

    # Assign variables and dataimport survey data
    december_survey_data_path = (TEST_DATA_DIR + r'\surveydata.csv')
    ctf.import_survey_data_into_database(december_survey_data_path, RUN_ID)

    unsampled_data_path = (TEST_DATA_DIR + r'\unsampleddata.csv')
    import_reference_data.import_traffic_data(RUN_ID, unsampled_data_path)

    # Deletes data from tables as necessary.
    ctf.reset_test_tables(RUN_ID, STEP_CONFIGURATION[STEP_NAME])

    # Populates test data within pv table.
    ctf.populate_test_pv_table(database_connection(), RUN_ID, PV_RUN_ID)
def setup_module(module):
    """ setup any state specific to the execution of the given module."""

    ist = time.time()

    # Deletes data from tables as necessary
    ctf.reset_test_tables(RUN_ID, STEP_CONFIGURATION[STEP_NAME])

    # Import survey data
    survey_data_path = r'tests\data\ips_data_management\import_data\minimums_weight\surveydata.csv'
    ctf.import_survey_data_into_database(survey_data_path, RUN_ID)

    # Import external data
    import_data_dir = r'tests\data\import_data\dec'
    ctf.import_test_data_into_database(import_data_dir, RUN_ID, load_survey_data=False)

    # Populate test data within pv table
    conn = database_connection()
    ctf.populate_test_pv_table(conn, RUN_ID, PV_RUN_ID)

    print("Setup")