Skip to content

#14 separation of the questions and the utils into a subpackage and separated...

This PR covers the code refactoring, includes separation of the questions, analysis, and and the utils into modules and subpackages, and removes the dependency in global variables from the CLI.

The file structure is as follows.

./src/moodle_tools/
├── analysis
│   ├── base.py
│   ├── cli.py
│   ├── cloze.py
│   ├── coderunner_sql.py
│   ├── drop_down.py
│   ├── __init__.py
│   ├── missing_words.py
│   ├── multiple_choice.py
│   ├── multiple_response.py
│   ├── multiple_true_false.py
│   ├── numeric.py
│   ├── question.py
│   └── true_false.py
├── analyze_results.py
├── __init__.py
├── make_questions.py
├── questions
│   ├── base.py
│   ├── cli.py
│   ├── cloze.py
│   ├── coderunner_sql.py
│   ├── __init__.py
│   ├── isis_database_configurations.py
│   ├── missing_words.py
│   ├── multiple_true_false.py
│   ├── numerical.py
│   ├── single_selection_multiple_choice.py
│   └── true_false.py
└── utils.py

The changes were tested by comparing the output of the current version and the changes introduced by this PR, the comparison was don by using the system diff between both files generated for each of the example templates in the /examples folder.

Closes #14 (closed)

Merge request reports