def test_filter_by_tag_has_seveal_tag(self, monkeypatch, context): from adhocracy_core.sheets.tags import filter_by_tag self._inject_mock_graph(monkeypatch, self._tag_names_to_tags( ['thistag', 'thattag'])) assert filter_by_tag([context], 'thattag') == [context]
def test_filter_by_tag_has_seveal_tag(self, monkeypatch, context): from adhocracy_core.sheets.tags import filter_by_tag self._inject_mock_graph( monkeypatch, self._tag_names_to_tags(['thistag', 'thattag'])) assert filter_by_tag([context], 'thattag') == [context]
def test_filter_by_tag_empty_list(self): from adhocracy_core.sheets.tags import filter_by_tag assert filter_by_tag([], 'mytag') == []