Skip to content
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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Conversation

satyaog
Copy link
Member

@satyaog satyaog commented Apr 10, 2024

No description provided.

Comment on lines 96 to 108
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"
Copy link
Member Author

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?

Comment on lines +99 to +105
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
Copy link
Member Author

@satyaog satyaog Apr 11, 2024

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?

@satyaog satyaog marked this pull request as ready for review April 11, 2024 13:34
* membership_type
* collaboration_type
* affiliation
@satyaog satyaog changed the title Set mymila test Add mymila fields Apr 11, 2024
@satyaog satyaog marked this pull request as draft April 11, 2024 17:19
@satyaog satyaog marked this pull request as ready for review April 12, 2024 16:22
@nurbal nurbal mentioned this pull request May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants