Esempio n. 1
0
    def test_drop_index_default_names(self):
        blueprint = Blueprint('users')
        blueprint.drop_unique(['foo', 'bar'])
        commands = blueprint.get_commands()
        self.assertEqual('users_foo_bar_unique', commands[0].index)

        blueprint = Blueprint('users')
        blueprint.drop_index(['foo'])
        commands = blueprint.get_commands()
        self.assertEqual('users_foo_index', commands[0].index)
    def test_drop_index_default_names(self):
        blueprint = Blueprint("users")
        blueprint.drop_unique(["foo", "bar"])
        commands = blueprint.get_commands()
        self.assertEqual("users_foo_bar_unique", commands[0].index)

        blueprint = Blueprint("users")
        blueprint.drop_index(["foo"])
        commands = blueprint.get_commands()
        self.assertEqual("users_foo_index", commands[0].index)
Esempio n. 3
0
    def test_drop_index_default_names(self):
        blueprint = Blueprint('users')
        blueprint.drop_unique(['foo', 'bar'])
        commands = blueprint.get_commands()
        self.assertEqual('users_foo_bar_unique', commands[0].index)

        blueprint = Blueprint('users')
        blueprint.drop_index(['foo'])
        commands = blueprint.get_commands()
        self.assertEqual('users_foo_index', commands[0].index)