Makes a test state using set_up_test_model and returns the original state and the state after the migration is applied.
(self, app_label, operation, **kwargs)
| 262 | return migration.unapply(project_state, editor) |
| 263 | |
| 264 | def make_test_state(self, app_label, operation, **kwargs): |
| 265 | """ |
| 266 | Makes a test state using set_up_test_model and returns the |
| 267 | original state and the state after the migration is applied. |
| 268 | """ |
| 269 | project_state = self.set_up_test_model(app_label, **kwargs) |
| 270 | new_state = project_state.clone() |
| 271 | operation.state_forwards(app_label, new_state) |
| 272 | return project_state, new_state |
| 273 | |
| 274 | def set_up_test_model( |
| 275 | self, |
no test coverage detected