fix: ...do not add to ActiveTUs when voting on a proposal

Straight up bug.

Closes #324

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-02-25 19:24:29 -08:00
parent b63ac7ce91
commit 9204b76110
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 0 additions and 3 deletions

View file

@ -650,7 +650,6 @@ def test_tu_proposal_vote(client, proposal):
# Store the current related values.
yes = voteinfo.Yes
active_tus = voteinfo.ActiveTUs
cookies = {"AURSID": tu_user.login(Request(), "testPassword")}
with client as request:
@ -661,7 +660,6 @@ def test_tu_proposal_vote(client, proposal):
# Check that the proposal record got updated.
assert voteinfo.Yes == yes + 1
assert voteinfo.ActiveTUs == active_tus + 1
# Check that the new TUVote exists.
vote = db.query(TUVote, TUVote.VoteInfo == voteinfo,