summaryrefslogtreecommitdiffstats
path: root/test/t2200-tuvotereminder.t
diff options
context:
space:
mode:
authorKevin Morris <kevr@0cost.org>2020-12-21 09:49:15 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2021-02-20 17:52:41 +0100
commitcc0784391b5ec3f56ef51f7cb1c5c6285d673287 (patch)
tree36a105805b9b660d9bb8ae5ab51e47c8eebfcc1d /test/t2200-tuvotereminder.t
parent6f395d06091d98e1fe38b8cf1e343aa81775007f (diff)
downloadaur-cc0784391b5ec3f56ef51f7cb1c5c6285d673287.tar.gz
aur-cc0784391b5ec3f56ef51f7cb1c5c6285d673287.tar.xz
Makefile: run pytest units
Important note: Python tests will repeatedly clear out tables that they test against; for this reason, one should always run the shell tests first. The __init__.py file is necessary for coverage to collect data from the tests being run. At this point in FastAPI development, I'd like to encourage a few things going forward: 1. Any time you contribute to the FastAPI codebase, you **must** maintain equal or increased coverage on the overall source. Developers are highly appreciated for adding tests in your specific domain of addition or modification that may be missing coverage. Our goal is 100% coverage, and all newly added files **must** have 100% coverage through tests. 2. All source should be formatted with the autopep8 tool and kept within an 80 column width, with the exception of HTML templates. Signed-off-by: Kevin Morris <kevr@0cost.org>
Diffstat (limited to 'test/t2200-tuvotereminder.t')
-rwxr-xr-xtest/t2200-tuvotereminder.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/t2200-tuvotereminder.t b/test/t2200-tuvotereminder.t
index 5a8f3a25..2f3836de 100755
--- a/test/t2200-tuvotereminder.t
+++ b/test/t2200-tuvotereminder.t
@@ -15,7 +15,7 @@ test_expect_success 'Test Trusted User vote reminders.' '
INSERT INTO TU_VoteInfo (ID, Agenda, User, Submitted, End, Quorum, SubmitterID) VALUES (4, "Lorem ipsum.", "user", 0, $threedays, 0.00, 2);
EOD
>sendmail.out &&
- "$TUVOTEREMINDER" &&
+ cover "$TUVOTEREMINDER" &&
grep -q "Proposal 2" sendmail.out &&
grep -q "Proposal 3" sendmail.out &&
test_must_fail grep -q "Proposal 1" sendmail.out &&
@@ -35,7 +35,7 @@ test_expect_success 'Check that only TUs who did not vote receive reminders.' '
INSERT INTO TU_Votes (VoteID, UserID) VALUES (1, 9);
EOD
>sendmail.out &&
- "$TUVOTEREMINDER" &&
+ cover "$TUVOTEREMINDER" &&
cat <<-EOD >expected &&
Subject: TU Vote Reminder: Proposal 2
To: tu2@localhost