tests: update assertions for new positions

Signed-off-by: n4chung <n4chung@csclub.uwaterloo.ca>
63-fix-ci
Nathan Chung 4 months ago
parent c2a5220b38
commit 80ec0bac6b
Signed by: n4chung
GPG Key ID: 594AD8B44154B88A
  1. 28
      tests/ceo/cli/test_positions.py
  2. 4
      tests/ceod/api/test_positions.py

@ -39,16 +39,24 @@ def test_positions(cli_setup, g_admin_ctx):
assert result.exit_code == 0
assert result.output == '''
The positions will be updated:
president: test_0
vice-president: test_1
sysadmin: test_2
secretary: test_3
webmaster: test_4
treasurer:
cro:
librarian:
imapd:
offsck:
president: test_0
vice-president: test_1
sysadmin: test_2
secretary: test_3
webmaster: test_4
treasurer:
cro:
librarian:
imapd:
offsck:
ext-affairs-lead:
marketing-lead:
design-lead:
events-lead:
reps-lead:
mods-lead:
photography-lead:
other:
Do you want to continue? [y/N]: y
Update positions in LDAP... Done
Update executive group in LDAP... Done

@ -8,7 +8,11 @@ def test_get_positions(client, ldap_user, g_admin_ctx):
assert status == 200
expected = {
'president': ldap_user.uid,
'secretary': 'test_3',
'sysadmin': 'test_2',
'treasurer': ldap_user.uid,
'vice-president': 'test_1',
'webmaster': 'test_4',
}
assert data == expected

Loading…
Cancel
Save