Skip to content

Commit

Permalink
Adjustment to test so that signatures are robustly tested
Browse files Browse the repository at this point in the history
Signed-off-by: Abelardo Pardo <abelardo.pardo@gmail.com>
  • Loading branch information
abelardopardo committed Nov 25, 2023
1 parent 09fbb27 commit 37f474c
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions ontask/action/tests/test_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,32 @@
class EmailActionTracking(tests.SimpleEmailActionFixture, tests.OnTaskTestCase):
"""Test Email tracking."""

trck_tokens = [
signing.dumps(item) for item in
[{
'action': 2,
'sender': 'instructor01@bogus.com',
'to': 'student01@bogus.com',
'column_to': 'email',
'column_dst': 'EmailRead_1'},
{
def test(self):
trck_tokens = [
signing.dumps(item) for item in
[{
'action': 2,
'sender': 'instructor01@bogus.com',
'to': 'student02@bogus.com',
'to': 'student01@bogus.com',
'column_to': 'email',
'column_dst': 'EmailRead_1'},
{
'action': 2,
'sender': 'instructor01@bogus.com',
'to': 'student03@bogus.com',
'column_to': 'email',
'column_dst': 'EmailRead_1'}]]
{
'action': 2,
'sender': 'instructor01@bogus.com',
'to': 'student02@bogus.com',
'column_to': 'email',
'column_dst': 'EmailRead_1'},
{
'action': 2,
'sender': 'instructor01@bogus.com',
'to': 'student03@bogus.com',
'column_to': 'email',
'column_dst': 'EmailRead_1'}]]

def test(self):
# Repeat the checks two times to test if they are accumulating
for idx in range(1, 3):
# Iterate over the tracking items
for track in self.trck_tokens:
for track in trck_tokens:
self.client.get(reverse('trck') + '?v=' + track)

# Get the workflow and the data frame
Expand Down

0 comments on commit 37f474c

Please sign in to comment.