@pytest.mark.usefixtures('data_config', 'nepc_connect')
def test_csdata_lines(data_config, nepc_connect):
    DIR_NAMES = data_config[1]
    cs_lines = 0
    for directoryname in DIR_NAMES:
        directory = os.fsencode(directoryname)
        for file in os.listdir(directory):
            filename = os.fsdecode(file)
            if (filename.endswith('.met') or filename.endswith('.mod')):
                continue
            else:
                cs_lines += (util.wc_fxn((directoryname + filename)) - 1)
    assert (cs_lines == nepc.count_table_rows(nepc_connect[1], 'csdata'))
@pytest.mark.usefixtures('data_config', 'nepc_connect')
def test_csdata_lines(data_config, nepc_connect):
    DIR_NAMES = data_config[1]
    cs_lines = 0
    for directoryname in DIR_NAMES:
        directory = os.fsencode(directoryname)
        for file in os.listdir(directory):
            filename = os.fsdecode(file)
            if (filename.endswith('.met') or filename.endswith('.mod')):
                continue
            else:
                cs_lines += (util.wc_fxn((directoryname + filename)) - 1)
    assert (cs_lines == nepc.count_table_rows(nepc_connect[1], 'csdata'))