(self)
| 899 | available_apps = ["bulk_create"] |
| 900 | |
| 901 | def get_unused_country_id(self): |
| 902 | # Find a serial ID that hasn't been used already and has enough of a |
| 903 | # buffer for the following `bulk_create` call without an explicit pk |
| 904 | # not to conflict. |
| 905 | return getattr(Country.objects.last(), "id", 10) + 100 |
| 906 | |
| 907 | def test_no_unnecessary_transaction(self): |
| 908 | unused_id = self.get_unused_country_id() |
no test coverage detected