python 3.8
git
itertools standard library for iterating and creating combinations or permutations.
unittest Python built in unit testing framework for creating test cases
- Download get-pip.py
- Install pip pckage manager
python get-pip.pyupgrade usingpython -m pip install --upgrade pip - Install virtualenv python3 package
pip install virtualenv
$ virtualenv -p python3.8 venv
$ source venv/bin/activate
- Main script
$ python app.py
-
Test cases (it is advised to run the test cases one at a time).
Used unittest library for testing.
List of test cases defined in test.py :
test_take_input test_take_input_no_of_players test_output test_output_2 test_create_team
test_create_team_2 test_form_matches test_find_average_score test_quality_check
Run for validating:
python -m unittest test.MyTestCase.'any_test_case_name'
$ python -m unittest test.MyTestCase.test_take_input
$ python -m unittest test.MyTestCase.test_take_input_no_of_players
...
- See commits history :
$ git log
I used Git for versioning.