def test_get_tags_versions(scratch_tag_counts, scratch_version_counts): expected = [ collections.OrderedDict([('label', 'fsl'), ( 'count', 25, )]), ] counts = utils.get_tags_by_label('f', True) assert counts == expected
def test_get_tags_versions(scratch_tag_counts, scratch_version_counts): expected = [ collections.OrderedDict([ ('label', 'fsl'), ('count', 25,) ]), ] counts = utils.get_tags_by_label('f', True) assert counts == expected
def test_get_tags_by_label(scratch_tag_counts): expected = [ collections.OrderedDict([('label', 'afni'), ( 'count', 5, )]), collections.OrderedDict([('label', 'fsl'), ( 'count', 25, )]), ] counts = utils.get_tags_by_label('f', False) assert counts == expected
def test_get_tags_by_label(scratch_tag_counts): expected = [ collections.OrderedDict([ ('label', 'afni'), ('count', 5,) ]), collections.OrderedDict([ ('label', 'fsl'), ('count', 25,) ]), ] counts = utils.get_tags_by_label('f', False) assert counts == expected