Beispiel #1
0
 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]
Beispiel #2
0
 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]
Beispiel #3
0
 def test_filter_by_tag_empty_list(self):
     from adhocracy_core.sheets.tags import filter_by_tag
     assert filter_by_tag([], 'mytag') == []
Beispiel #4
0
 def test_filter_by_tag_empty_list(self):
     from adhocracy_core.sheets.tags import filter_by_tag
     assert filter_by_tag([], 'mytag') == []