mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
housekeep: TU rename - Table/Column names, scripts
TU_VoteInfo -> VoteInfo TU_Votes -> Votes TU_VoteInfo.ActiveTUs -> VoteInfo.ActiveUsers script: tuvotereminder -> votereminder Signed-off-by: moson <moson@archlinux.org>
This commit is contained in:
parent
87f6791ea8
commit
d2d47254b4
23 changed files with 234 additions and 192 deletions
|
@ -544,11 +544,11 @@ This is a test closure comment.
|
|||
assert email.body == expected
|
||||
|
||||
|
||||
def test_pm_vote_reminders(user: User):
|
||||
def test_vote_reminders(user: User):
|
||||
set_tu([user])
|
||||
|
||||
vote_id = 1
|
||||
notif = notify.TUVoteReminderNotification(vote_id)
|
||||
notif = notify.VoteReminderNotification(vote_id)
|
||||
notif.send()
|
||||
assert Email.count() == 1
|
||||
|
||||
|
@ -571,7 +571,7 @@ def test_notify_main(user: User):
|
|||
set_tu([user])
|
||||
|
||||
vote_id = 1
|
||||
args = ["aurweb-notify", "tu-vote-reminder", str(vote_id)]
|
||||
args = ["aurweb-notify", "vote-reminder", str(vote_id)]
|
||||
with mock.patch("sys.argv", args):
|
||||
notify.main()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue