diff --git a/test/test_package_base.py b/test/test_package_base.py index 7f608c2c..0c0d0526 100644 --- a/test/test_package_base.py +++ b/test/test_package_base.py @@ -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. """