mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
PackageBase: test Popularity conversion
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
c05fafea0e
commit
d57dfd4d36
1 changed files with 5 additions and 0 deletions
|
@ -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. """
|
||||
|
|
Loading…
Add table
Reference in a new issue