Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

# -*- coding: utf-8 -*- 

""" 

@file 

@brief Shortcut to *tests*. 

""" 

 

from .qcms import simple_french_qcm, ml_french_qcm 

 

 

def get_game(name): 

""" 

Retrieves a game. 

 

@param name game name 

@return game 

""" 

if name in ("test_qcm1", "simple_french_qcm"): 

return simple_french_qcm() 

elif name in ("test_ml1", "ml_french_qcm"): 

return ml_french_qcm() 

else: 

raise ValueError("Unknown game '{0}'".format(name))