Exemplo n.º 1
0
def test_join_new(datasets):
    ds = join_new(datasets, 'member_id', ['one', 'two'], 'Tair')
    assert 'member_id' in ds.coords
    assert set(['one', 'two']) == set(ds.member_id.values)
Exemplo n.º 2
0
def test_join_new_error(datasets):
    with pytest.raises(ValueError):
        _ = join_new(datasets, 'time', ['one', 'two'], 'Tair')
Exemplo n.º 3
0
def test_join_new_error(datasets):
    with pytest.raises(
        AggregationError, match=r'Failed to join/concatenate datasets in group with'
    ):
        _ = join_new(datasets, 'time', ['one', 'two'], ['Tair'])