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,8 +114,10 @@ class App():
114 logger.info('Students not yet allowed to login.') 114 logger.info('Students not yet allowed to login.')
115 115
116 # pre-generate tests 116 # pre-generate tests
  117 +
117 if self.allowed: 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 self._pregenerate_tests(len(self.allowed)) 121 self._pregenerate_tests(len(self.allowed))
120 else: 122 else:
121 logger.info('No tests were generated.') 123 logger.info('No tests were generated.')
perguntations/test.py
@@ -49,7 +49,6 @@ class TestFactory(dict): @@ -49,7 +49,6 @@ class TestFactory(dict):
49 'autosubmit': False, 49 'autosubmit': False,
50 'debug': False, 50 'debug': False,
51 'show_ref': False, 51 'show_ref': False,
52 - 'allow_students': [],  
53 }) 52 })
54 self.update(conf) 53 self.update(conf)
55 54
@@ -123,9 +122,6 @@ class TestFactory(dict): @@ -123,9 +122,6 @@ class TestFactory(dict):
123 if qmissing: 122 if qmissing:
124 raise TestFactoryException(f'Could not find questions {qmissing}.') 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 def check_test_ref(self): 126 def check_test_ref(self):
131 '''Test must have a `ref`''' 127 '''Test must have a `ref`'''