Changes between Initial Version and Version 1 of Ticket #28250, comment 9
- Timestamp:
- May 30, 2017, 10:28:55 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28250, comment 9
initial v1 3 3 I believe you can check this with `if migration[0] != parent[0]`. 4 4 5 I've written the following test for you branch, which should go into `migrations.test_loader.LoaderTests`:5 I've written the following test for your branch, which should go into `migrations.test_loader.LoaderTests`: 6 6 7 7 {{{ … … 29 29 This also tests for the same-app scenario. I haven't checked if the test is actually correct, and my mocking skills aren't too sharp, but this should get you a long way. 30 30 31 Note that `detect_soft_applied` returns a 2-tuple of `(<is_applied>, <state_after_migration>)`, so you need to check for the first item in the return value.31 Note that `detect_soft_applied` returns a 2-tuple of `(<is_applied>, <state_after_migration>)`, which is non-empty and thus truthy, so you need to check for the first item in the return value.