Example #1
0
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
Example #2
0
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
Example #3
0
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
Example #4
0
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