Commit be9d28e029a7fe6fe0dc52f4f09e2c5d4163141b
1 parent
6fd2f1d3
Exists in
master
and in
1 other branch
minor
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
perguntations/test.py
| ... | ... | @@ -38,7 +38,6 @@ class TestFactory(dict): |
| 38 | 38 | 'scale_points': True, |
| 39 | 39 | 'scale_max': 20.0, |
| 40 | 40 | 'scale_min': 0.0, |
| 41 | - # 'rounding': 1, # round grade to given decimal places | |
| 42 | 41 | 'duration': 0, # 0=infinite |
| 43 | 42 | 'debug': False, |
| 44 | 43 | 'show_ref': False |
| ... | ... | @@ -51,7 +50,7 @@ class TestFactory(dict): |
| 51 | 50 | |
| 52 | 51 | # --- find refs of all questions used in the test |
| 53 | 52 | qrefs = {r for qq in self['questions'] for r in qq['ref']} |
| 54 | - logger.info(f'There are {len(qrefs)} questions declared (each test uses {len(self["questions"])}).') | |
| 53 | + logger.info(f'Declared {len(qrefs)} questions (each test uses {len(self["questions"])}).') | |
| 55 | 54 | |
| 56 | 55 | # --- for review, we are done. no factories needed |
| 57 | 56 | if self['review']: |
| ... | ... | @@ -233,7 +232,6 @@ class TestFactory(dict): |
| 233 | 232 | 'duration': self['duration'], |
| 234 | 233 | 'scale_min': self['scale_min'], |
| 235 | 234 | 'scale_max': self['scale_max'], |
| 236 | - # 'rounding': self['rounding'], | |
| 237 | 235 | 'show_points': self['show_points'], |
| 238 | 236 | 'show_ref': self['show_ref'], |
| 239 | 237 | 'debug': self['debug'], # required by template test.html | ... | ... |