Beispiel #1
0
def test_single_table():
    vma_r = VMAReader(wb)
    result, _, _ = vma_r.read_single_table('C48',
                                           sheetname='Variable Meta-analysis',
                                           fixed_summary=False)
    expected = pd.read_csv(thisdir.joinpath('silvopasture_vma1.csv'))
    expected['Year / Date'] = expected['Year / Date'].astype('object')
    pd.testing.assert_frame_equal(expected, result)
Beispiel #2
0
def test_single_table_use_weight():
    vma_r = VMAReader(wb)
    _, uw, _ = vma_r.read_single_table('C48',
                                       sheetname='Variable Meta-analysis',
                                       fixed_summary=False)
    assert not uw