Open hithamv opened 1 week ago
The populate_teams_based_on_gender method is designed to allocate students into balanced teams based on their gender, adhering to the rules around gender representation within each team.
The test validates the team distribution within each section, comparing the gender composition of each team against predefined expectations.
Section B Validation:
Expected distribution: 3 teams. Each team’s gender composition is checked against an array of expected_b_team_genders, which specifies the number of students of each gender per team. The test ensures each team has 0-4 members, and the gender counts match the expected distribution.
Section A Validation:
Expected distribution: 3 teams. Similarly, each team’s composition is validated against an array of expected_a_team_genders. The test checks that each team in Section A also has 0-4 students and that gender representation aligns with the expected values.
Feature : Team Formation As a professor , So that I can ensure gender representation ( female and other non - male genders ) in teams , I want the system to include at least two individuals from these gender groups Scenario : System ensures at least two individuals from gender groups ( female and other non - male genders ) in teams Given the submission period has closed When the system processes student data for team formation Then each team should include at least two individuals from gender groups ( female and other non - male genders ) if applicable