(self)
| 92 | self.assertIsNone(log.error) |
| 93 | |
| 94 | def test_log_saves_errors(self): |
| 95 | q = SimpleQueryFactory() |
| 96 | q.sql = "select wildly invalid query" |
| 97 | q.save() |
| 98 | try: |
| 99 | q.execute_with_logging(None) |
| 100 | except Exception: |
| 101 | pass |
| 102 | log = QueryLog.objects.first() |
| 103 | self.assertFalse(log.success) |
| 104 | self.assertIsNotNone(log.error) |
| 105 | |
| 106 | @unittest.skipIf(not app_settings.ENABLE_TASKS, "tasks not enabled") |
| 107 | @patch("explorer.models.s3_url") |
nothing calls this directly
no test coverage detected