https://github.com/btr1975/simpletestengine
A simple test engine to help study any topic
https://github.com/btr1975/simpletestengine
learning python3 testing-tools yaml yml
Last synced: 6 months ago
JSON representation
A simple test engine to help study any topic
- Host: GitHub
- URL: https://github.com/btr1975/simpletestengine
- Owner: btr1975
- License: mit
- Created: 2017-10-24T01:22:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-16T20:38:50.000Z (almost 7 years ago)
- Last Synced: 2025-03-28T15:15:41.943Z (10 months ago)
- Topics: learning, python3, testing-tools, yaml, yml
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Script: SimpleTestEngine
## Written By: Benjamin P. Trachtenberg
### Contact Information: e_ben_75-python@yahoo.com
### If you have any questions e-mail me
### LinkedIn: [Ben Trachtenberg](https://www.linkedin.com/in/ben-trachtenberg-3a78496)
### Docker Hub: [Docker Hub](https://hub.docker.com/r/btr1975)
### Requirements
* directories==1.0.7
* persistentdatatools==2.2.8
* PyYAML==4.2b4
* menusys==1.1.5
### Languages
* Python
### About
This is a simple test engine you can use for multiple choice, and direct answer.
### YML File Formatting
```yml
--- # Name of question sets Version: 1.0.0
question_sets:
- question_set: Midwest
questions:
- question: What is the state capital of Minnesota
answer: Saint Paul
answer_opts: <--- With this key included you are making a multiple choice
- Burnsville
- Saint Paul <--- One answer must match the answer of your question
- Minneapolis
- Golden Valley
feedback: <--- This key is not required, if you include it you must inlude the 2 feedback keys
correct_answer: That is correct good job!
incorrect_answer: Sorry that is not a correct answer.
- question: What is the state capital of Minnesota
answer: <--- Making this a list will make a typed answer with multiple possible matches
- Saint Paul
- St. Paul
- St Paul
feedback:
correct_answer: That is correct good job!
incorrect_answer: Sorry that is not a correct answer. The correct anser is Saint Paul.
- question: What is the state capital in Miisouri
answer: Jefferson City <--- Making this a single item means it must match exactly
feedback:
correct_answer: That is correct good job!
incorrect_answer: Sorry that is not a correct answer.
- question_set: Northeast
questions:
- question: What is the state capital of Maine
answer: Augusta
feedback:
correct_answer: That is correct good job!
incorrect_answer: Sorry that is not a correct answer. The correct answer is Augusta.
- question: What is the state capital of Connecticut
answer: Hartford
answer_opts:
- Providence
- Hartford
- Harrisburg
- Boston
feedback:
correct_answer: That is correct good job!
incorrect_answer: Sorry that is not a correct answer. The correct answer is Hartford.
```