'#22435 - Adding a ManyToManyField should not prompt for a default.'

@mock.patch('django.db.migrations.questioner.MigrationQuestioner.ask_not_null_addition', side_effect=AssertionError('Should    not    have    prompted    for    not    null    addition'))
def test_add_many_to_many(self, mocked_ask_method):

    changes = self.get_changes([self.author_empty, self.publisher], [self.author_with_m2m, self.publisher])
    self.assertNumberMigrations(changes, 'testapp', 1)
    self.assertOperationTypes(changes, 'testapp', 0, ['AddField'])
    self.assertOperationAttributes(changes, 'testapp', 0, 0, name='publishers')
