Changes between Initial Version and Version 1 of Ticket #28250, comment 9


Ignore:
Timestamp:
May 30, 2017, 10:28:55 AM (7 years ago)
Author:
Marten Kenbeek

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28250, comment 9

    initial v1  
    33I believe you can check this with `if migration[0] != parent[0]`.
    44
    5 I've written the following test for you branch, which should go into `migrations.test_loader.LoaderTests`:
     5I've written the following test for your branch, which should go into `migrations.test_loader.LoaderTests`:
    66
    77{{{
     
    2929This 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.
    3030
    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.
     31Note 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.
Back to Top