Beispiel #1
0
def test_get_tags_by_author_not_found(scratch_tag_author_counts):
    with pytest.raises(ValueError):
        utils.get_tag_author_counts('54321')
Beispiel #2
0
def test_get_tags_by_author(scratch_tag_author_counts):
    serialized = utils.get_tag_author_counts('12345')
    assert serialized == collections.OrderedDict([
        ('normalize', 5),
        ('smooth', 2),
    ])
Beispiel #3
0
def test_get_tags_by_author(scratch_tag_author_counts):
    serialized = utils.get_tag_author_counts('12345')
    assert serialized == collections.OrderedDict([
        ('normalize', 5),
        ('smooth', 2),
    ])