Commit cfbb11f30a09faf58a4bd645fe4d7a9a22fcd317

Authored by Miguel Barão
1 parent be1efae8
Exists in master and in 1 other branch dev

minor change

Showing 2 changed files with 3 additions and 5 deletions   Show diff stats
perguntations/app.py
... ... @@ -114,8 +114,10 @@ class App():
114 114 logger.info('Students not yet allowed to login.')
115 115  
116 116 # pre-generate tests
  117 +
117 118 if self.allowed:
118   - logger.info('Generating tests for %d students...', len(self.allowed))
  119 + logger.info('Generating %d tests. May take awhile...',
  120 + len(self.allowed))
119 121 self._pregenerate_tests(len(self.allowed))
120 122 else:
121 123 logger.info('No tests were generated.')
... ...
perguntations/test.py
... ... @@ -49,7 +49,6 @@ class TestFactory(dict):
49 49 'autosubmit': False,
50 50 'debug': False,
51 51 'show_ref': False,
52   - 'allow_students': [],
53 52 })
54 53 self.update(conf)
55 54  
... ... @@ -123,9 +122,6 @@ class TestFactory(dict):
123 122 if qmissing:
124 123 raise TestFactoryException(f'Could not find questions {qmissing}.')
125 124  
126   - # if isinstance(allow_students, str): FIXME
127   - # try to o
128   -
129 125 # ------------------------------------------------------------------------
130 126 def check_test_ref(self):
131 127 '''Test must have a `ref`'''
... ...