def test_feature_array_with_dummy(): array = FeatureSpecArray(FeatureSpec("some kind", "some name")) expect = array.as_dict() assert (array + DummySpec()).as_dict() == expect assert (DummySpec() + array).as_dict() == expect
def test_geom_with_dummy(): geom = _geom('geom') expect = geom.as_dict() assert (geom + DummySpec()).as_dict() == expect assert (DummySpec() + geom).as_dict() == expect
def test_layer_with_dummy(): layer = LayerSpec() expect = layer.as_dict() assert (layer + DummySpec()).as_dict() == expect assert (DummySpec() + layer).as_dict() == expect
def test_plot_with_dummy(): plot = gg.ggplot() expect = plot.as_dict() assert (plot + DummySpec()).as_dict() == expect assert (DummySpec() + plot).as_dict() == expect
def test_feature_with_dummy(): feature = FeatureSpec("some kind", "some name") expect = feature.as_dict() assert (feature + DummySpec()).as_dict() == expect
def test_dummy_with_dummy(): expect = {'dummy-feature': True} assert (DummySpec() + DummySpec()).as_dict() == expect