mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
add test_popupdate.py
We had no coverage over aurweb.scripts.popupdate. This test covers all of its functionality. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
4b7609681d
commit
6d08789ac1
3 changed files with 8 additions and 1 deletions
|
@ -7,7 +7,6 @@ import aurweb.db
|
|||
|
||||
def main():
|
||||
conn = aurweb.db.Connection()
|
||||
|
||||
conn.execute("UPDATE PackageBases SET NumVotes = (" +
|
||||
"SELECT COUNT(*) FROM PackageVotes " +
|
||||
"WHERE PackageVotes.PackageBaseID = PackageBases.ID)")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue