🐛 Fixed some tests
This commit is contained in:
@@ -33,6 +33,7 @@ class ValueStorage:
|
||||
exported_quiz_data = None
|
||||
edit_id = None
|
||||
image_id = None
|
||||
cookies = None
|
||||
|
||||
|
||||
example_quiz = {
|
||||
@@ -41,14 +42,16 @@ example_quiz = {
|
||||
"description": "A description",
|
||||
"questions": [
|
||||
{
|
||||
"type": "ABCD",
|
||||
"question": "Is ClassQuiz cool?",
|
||||
"time": 10,
|
||||
"answers": [{"right": True, "answer": "Yes"}, {"right": False, "answer": "No"}],
|
||||
},
|
||||
{
|
||||
"type": "ABCD",
|
||||
"question": "Do you like open source?",
|
||||
"time": 5,
|
||||
"image": "https://i.imgur.com/sSNSy77.png",
|
||||
"image": None,
|
||||
"answers": [
|
||||
{"right": True, "answer": "Yes"},
|
||||
{"right": False, "answer": "No"},
|
||||
@@ -60,6 +63,7 @@ example_quiz = {
|
||||
test_user_email = "sth@byom.de"
|
||||
test_user_password = "test"
|
||||
|
||||
|
||||
# mock_test_results = {'0': [{'username': 'Player 1', 'answer': 'Byte, Bit, KB, MB, GB, TB', 'right': False},
|
||||
# {'username': 'Player 2', 'answer': 'Byte, Bit, KB, MB, GB, TB', 'right': False}, {'username': 'Player 3',
|
||||
# 'answer': 'Bit, Byte, KB, MB, GB, TB', 'right': True}], '1': [{'username': 'Player 3', 'answer': 'CPU',
|
||||
|
||||
Reference in New Issue
Block a user