diff --git a/perguntations/app.py b/perguntations/app.py index 8d89f6e..533046a 100644 --- a/perguntations/app.py +++ b/perguntations/app.py @@ -114,8 +114,10 @@ class App(): logger.info('Students not yet allowed to login.') # pre-generate tests + if self.allowed: - logger.info('Generating tests for %d students...', len(self.allowed)) + logger.info('Generating %d tests. May take awhile...', + len(self.allowed)) self._pregenerate_tests(len(self.allowed)) else: logger.info('No tests were generated.') diff --git a/perguntations/test.py b/perguntations/test.py index 9fd45b0..1304231 100644 --- a/perguntations/test.py +++ b/perguntations/test.py @@ -49,7 +49,6 @@ class TestFactory(dict): 'autosubmit': False, 'debug': False, 'show_ref': False, - 'allow_students': [], }) self.update(conf) @@ -123,9 +122,6 @@ class TestFactory(dict): if qmissing: raise TestFactoryException(f'Could not find questions {qmissing}.') - # if isinstance(allow_students, str): FIXME - # try to o - # ------------------------------------------------------------------------ def check_test_ref(self): '''Test must have a `ref`''' -- libgit2 0.21.2