-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mymila fields #120
base: master
Are you sure you want to change the base?
Add mymila fields #120
Conversation
users = get_users() | ||
assert len(users) == nbr_users | ||
|
||
for i in range(nbr_profs): | ||
user = users[i] | ||
# A prof should not have a supervisor or co-supervisor | ||
assert user.mila_ldap["supervisor"] is None | ||
assert user.mila_ldap["co_supervisor"] is None | ||
|
||
for i in range(nbr_profs, nbr_users): | ||
user = users[i] | ||
assert user.mila_ldap["supervisor"] == f"john.smith{i%nbr_profs:03d}@mila.quebec" | ||
assert user.mila_ldap["co_supervisor"] == f"john.smith{(i+1)%nbr_profs:03d}@mila.quebec" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this be somewhat the expected behaviour?
cbf5e06
to
0e97e32
Compare
for i in range(nbr_profs): | ||
user = users[i] | ||
# A prof should not have a supervisor or co-supervisor but there's a | ||
# mismatch between the number of profs in ldap (1) and the generated | ||
# mymila data (5) | ||
# assert user.mila_ldap["supervisor"] is None | ||
# assert user.mila_ldap["co_supervisor"] is None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be worth it to harmonize fake_raw_ldap_data
with fake_mymila_data
to set the number of professor to sometimes be >1? My assumption of a professor should nto have a [co-]supervisor might also be wrong?
0e97e32
to
7619bb1
Compare
* membership_type * collaboration_type * affiliation
5b3736c
to
23fac41
Compare
No description provided.