Example #1
0
def process_revision_directives(context, revision, directives):
    if cli._use_separate_migration_branches(context.config):
        directives[:] = [
            directive for directive in _assign_directives(context, directives)
        ]
Example #2
0
 def test__use_separate_migration_branches_with_branch_points(self, *mocks):
     self.assertTrue(cli._use_separate_migration_branches(self.configs[0]))
Example #3
0
 def test__use_separate_migration_branches_enforced(self, *mocks):
     self.assertTrue(cli._use_separate_migration_branches(self.configs[0]))
Example #4
0
 def test__use_separate_migration_branches_with_branch_points(self, *mocks):
     self.assertTrue(cli._use_separate_migration_branches(self.configs[0]))
Example #5
0
 def test__use_separate_migration_branches_enforced(self, *mocks):
     self.assertTrue(cli._use_separate_migration_branches(self.configs[0]))
Example #6
0
def process_revision_directives(context, revision, directives):
    if cli._use_separate_migration_branches(context.config):
        directives[:] = [
            directive for directive in _assign_directives(context, directives)
        ]