Skip to content

Commit 0c3cd86

Browse files
authored
Merge pull request #571 from rtibbles/more_files_tests
Adds more tests for the File classes to ensure behaviour ahead of refactor
2 parents e472e6a + 4cda946 commit 0c3cd86

3 files changed

Lines changed: 863 additions & 309 deletions

File tree

tests/test_exercises.py

Lines changed: 0 additions & 177 deletions
Original file line numberDiff line numberDiff line change
@@ -169,183 +169,6 @@ def test_exercise_extra_fields_float(exercise):
169169
exercise.validate()
170170

171171

172-
#
173-
# def test_exercise_to_dict(exercise):
174-
# assert exercise.default_preset == exercises.PERSEUS_QUESTION
175-
#
176-
# def test_exercise_add_question(exercise):
177-
# assert exercise.default_preset == exercises.PERSEUS_QUESTION
178-
#
179-
# def test_exercise_process_file(exercise):
180-
# assert exercise.default_preset == exercises.PERSEUS_QUESTION
181-
#
182-
# def test_exercise_process_exercise_data(exercise):
183-
# assert exercise.default_preset == exercises.PERSEUS_QUESTION
184-
185-
186-
""" *********** BASE64FILE TESTS *********** """
187-
188-
189-
def test_base64_process_file():
190-
assert True
191-
192-
193-
def test_base64_validate():
194-
assert True
195-
196-
197-
def test_base64_to_dict():
198-
assert True
199-
200-
201-
def test_base64_convert_base64_to_file():
202-
assert True
203-
204-
205-
""" *********** EXERCISEBASE64FILE TESTS *********** """
206-
207-
208-
def test_exercisebase64_process_file():
209-
assert True
210-
211-
212-
def test_exercisebase64_validate():
213-
assert True
214-
215-
216-
def test_exercisebase64_to_dict():
217-
assert True
218-
219-
220-
def test_exercisebase64_get_replacement_str():
221-
assert True
222-
223-
224-
""" *********** EXERCISEIMAGEFILE TESTS *********** """
225-
226-
227-
def test_exerciseimage_process_file():
228-
assert True
229-
230-
231-
def test_exerciseimage_validate():
232-
assert True
233-
234-
235-
def test_exerciseimage_to_dict():
236-
assert True
237-
238-
239-
def test_exerciseimage_get_replacement_str():
240-
assert True
241-
242-
243-
""" *********** EXERCISEGRAPHIEFILE TESTS *********** """
244-
245-
246-
def test_exercisegraphie_process_file():
247-
assert True
248-
249-
250-
def test_exercisegraphie_validate():
251-
assert True
252-
253-
254-
def test_exercisegraphie_to_dict():
255-
assert True
256-
257-
258-
def test_exercisegraphie_get_replacement_str():
259-
assert True
260-
261-
262-
def test_exercisegraphie_generate_graphie_file():
263-
assert True
264-
265-
266-
""" *********** QUESTION TESTS *********** """
267-
268-
269-
def test_question_to_dict():
270-
assert True
271-
272-
273-
def test_question_create_answer():
274-
assert True
275-
276-
277-
def test_question_process_question():
278-
assert True
279-
280-
281-
def test_question_set_images():
282-
assert True
283-
284-
285-
def test_question_parse_html():
286-
assert True
287-
288-
289-
def test_question_set_image():
290-
assert True
291-
292-
293-
def test_question_validate():
294-
assert True
295-
296-
297-
""" *********** PERSEUSQUESTION TESTS *********** """
298-
299-
300-
def test_perseusquestion_to_dict():
301-
assert True
302-
303-
304-
def test_perseusquestion_validate():
305-
assert True
306-
307-
308-
def test_perseusquestion_process_question():
309-
assert True
310-
311-
312-
def test_perseusquestion_process_image_field():
313-
assert True
314-
315-
316-
""" *********** MULTIPLESELECTQUESTION TESTS *********** """
317-
318-
319-
def test_multipleselectquestion_to_dict():
320-
assert True
321-
322-
323-
def test_multipleselectquestion_validate():
324-
assert True
325-
326-
327-
""" *********** SINGLESELECTQUESTION TESTS *********** """
328-
329-
330-
def test_singleselectquestion_to_dict():
331-
assert True
332-
333-
334-
def test_singleselectquestion_validate():
335-
assert True
336-
337-
338-
""" *********** INPUTQUESTION TESTS *********** """
339-
340-
341-
def test_inputquestion_to_dict():
342-
assert True
343-
344-
345-
def test_inputquestion_validate():
346-
assert True
347-
348-
349172
################################################################################
350173
# Perseus image asset processing and image loading tests
351174
################################################################################

0 commit comments

Comments
 (0)