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)
def test_join_new_error(datasets): with pytest.raises(ValueError): _ = join_new(datasets, 'time', ['one', 'two'], 'Tair')
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'])