(self)
| 2096 | self.assertIs(self.callback_called, True) |
| 2097 | |
| 2098 | def test_using(self): |
| 2099 | with self.captureOnCommitCallbacks(using="other") as callbacks: |
| 2100 | self.enqueue_callback(using="other") |
| 2101 | |
| 2102 | self.assertEqual(len(callbacks), 1) |
| 2103 | self.assertIs(self.callback_called, False) |
| 2104 | callbacks[0]() |
| 2105 | self.assertIs(self.callback_called, True) |
| 2106 | |
| 2107 | def test_different_using(self): |
| 2108 | with self.captureOnCommitCallbacks(using="default") as callbacks: |
nothing calls this directly
no test coverage detected