예제 #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
예제 #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
예제 #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
예제 #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