PackageBase: test Popularity conversion

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-07-20 14:13:07 -07:00
parent c05fafea0e
commit d57dfd4d36
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -36,6 +36,11 @@ def test_package_base():
assert pkgbase.SubmittedTS > 0
assert pkgbase.ModifiedTS > 0
# Set Popularity to a string, then get it by attribute to
# exercise the string -> float conversion path.
pkgbase.Popularity = "0.0"
assert pkgbase.Popularity == 0.0
def test_package_base_ci():
""" Test case insensitivity of the database table. """