Refactored parse_arguments.py, removed bugs and added test cases
This pull request contains refactored code in parse_arguments.py. The quit() commands were removed to make testing of the program easier and also make the code more efficient. In its place, the string "Invalid entry" was coded. Furthermore, I made test cases to increase code coverage with test_arguments.py (@enpuyou also helped out). Also, there was a bug that was fixed in parse_arguments) where student groups of 1 and 0 were being considered, when they shouldn't.
Fixes #202, fixes #194
Type of Change
Please describe the pull request as one of the following:
[x] Bug fix
[ ] Breaking change
[x] New feature
[ ] Documentation update
[x] Testing: Test cases were made in test_arguments.py
Tags
@enpuyou - helped in creating a test case for parse_arguments.py
Refactored parse_arguments.py, removed bugs and added test cases
This pull request contains refactored code in
parse_arguments.py
. The quit() commands were removed to make testing of the program easier and also make the code more efficient. In its place, the string "Invalid entry" was coded. Furthermore, I made test cases to increase code coverage withtest_arguments.py
(@enpuyou also helped out). Also, there was a bug that was fixed inparse_arguments)
where student groups of 1 and 0 were being considered, when they shouldn't.Fixes #202, fixes #194
Type of Change
Please describe the pull request as one of the following:
test_arguments.py
Tags
@enpuyou - helped in creating a test case for
parse_arguments.py