@pytest.mark.usefixtures('data_config', 'nepc_connect')
def test_data_entered(data_config, nepc_connect, local):
    NEPC_DATA = data_config[0]
    if ((local is False) or (platform.node() == 'ppdadamsonlinux')):
        cs_dat_files = pd.read_csv((NEPC_DATA + 'cs_datfile_prod.tsv'), delimiter='\t')
    else:
        cs_dat_files = pd.read_csv((NEPC_DATA + 'cs_datfile_local.tsv'), delimiter='\t')
    for (index, row) in cs_dat_files.iterrows():
        cs_id = row['cs_id']
        dat_file = row['filename']
        df = pd.read_csv(((NEPC_DATA + dat_file) + '.dat'), delimiter='\t', usecols=['e_energy', 'sigma'])
        (e_energy, sigma) = nepc.cs_e_sigma(nepc_connect[1], cs_id)
        assert (sigma == pytest.approx(df['sigma'].tolist()))
@pytest.mark.usefixtures('data_config', 'nepc_connect')
def test_data_entered(data_config, nepc_connect, local):
    NEPC_DATA = data_config[0]
    if ((local is False) or (platform.node() == 'ppdadamsonlinux')):
        cs_dat_files = pd.read_csv((NEPC_DATA + 'cs_datfile_prod.tsv'), delimiter='\t')
    else:
        cs_dat_files = pd.read_csv((NEPC_DATA + 'cs_datfile_local.tsv'), delimiter='\t')
    for (index, row) in cs_dat_files.iterrows():
        cs_id = row['cs_id']
        dat_file = row['filename']
        df = pd.read_csv(((NEPC_DATA + dat_file) + '.dat'), delimiter='\t', usecols=['e_energy', 'sigma'])
        (e_energy, sigma) = nepc.cs_e_sigma(nepc_connect[1], cs_id)
        assert (sigma == pytest.approx(df['sigma'].tolist()))