def test_get_tags_by_author_not_found(scratch_tag_author_counts): with pytest.raises(ValueError): utils.get_tag_author_counts('54321')
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), ])
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), ])