Ejemplo n.º 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)
        ]
Ejemplo n.º 2
0
 def test__use_separate_migration_branches_with_branch_points(self, *mocks):
     self.assertTrue(cli._use_separate_migration_branches(self.configs[0]))
Ejemplo n.º 3
0
 def test__use_separate_migration_branches_enforced(self, *mocks):
     self.assertTrue(cli._use_separate_migration_branches(self.configs[0]))
Ejemplo n.º 4
0
 def test__use_separate_migration_branches_with_branch_points(self, *mocks):
     self.assertTrue(cli._use_separate_migration_branches(self.configs[0]))
Ejemplo n.º 5
0
 def test__use_separate_migration_branches_enforced(self, *mocks):
     self.assertTrue(cli._use_separate_migration_branches(self.configs[0]))
Ejemplo n.º 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)
        ]