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