tests: update assertions for new positions

Signed-off-by: n4chung <n4chung@csclub.uwaterloo.ca>
This commit is contained in:
Nathan Chung 2022-10-13 18:12:22 -04:00
parent c2a5220b38
commit 80ec0bac6b
Signed by: n4chung
GPG Key ID: 594AD8B44154B88A
2 changed files with 22 additions and 10 deletions

View File

@ -39,16 +39,24 @@ def test_positions(cli_setup, g_admin_ctx):
assert result.exit_code == 0 assert result.exit_code == 0
assert result.output == ''' assert result.output == '''
The positions will be updated: The positions will be updated:
president: test_0 president: test_0
vice-president: test_1 vice-president: test_1
sysadmin: test_2 sysadmin: test_2
secretary: test_3 secretary: test_3
webmaster: test_4 webmaster: test_4
treasurer: treasurer:
cro: cro:
librarian: librarian:
imapd: imapd:
offsck: 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 Do you want to continue? [y/N]: y
Update positions in LDAP... Done Update positions in LDAP... Done
Update executive group in LDAP... Done Update executive group in LDAP... Done

View File

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