          """
          with self.assertRaises(CommandError):
              call_command("makemigrations")
  
      @override_system_checks([])
      @override_settings(MIGRATION_MODULES={"migrations": "migrations.test_migrations_conflict"})
      def test_makemigrations_merge_basic(self):
          """
          Makes sure that makemigrations doesn't error if you ask for
          merge mode with a conflict present. Doesn't test writing of the merge
          file, as that requires temp directories.
          """
          try:
              call_command("makemigrations", merge=True, verbosity=0)
          except CommandError:
              self.fail("Makemigrations errored in merge mode with conflicts")
  
      @override_system_checks([])
      @override_settings(MIGRATION_MODULES={"migrations": "migrations.test_migrations"})
      def test_makemigrations_merge_no_conflict(self):
          """
          Makes sure that makemigrations exits if in merge mode with no conflicts.
 
</s> remove         Makes sure that makemigrations properly merges the conflicting migrations.
 </s> add         Makes sure that makemigrations properly merges the conflicting migrations with --noinput. </s> remove         call_command("makemigrations", "migrations", merge=True, stdout=stdout)
 </s> add         call_command("makemigrations", "migrations", merge=True, interactive=False, stdout=stdout) </s> remove             questioner = MigrationQuestioner()
 </s> add             questioner = MigrationQuestioner(defaults={'ask_merge': True})
          """
          with self.assertRaises(CommandError):
              call_command("makemigrations")
  













      @override_system_checks([])
      @override_settings(MIGRATION_MODULES={"migrations": "migrations.test_migrations"})
      def test_makemigrations_merge_no_conflict(self):
          """
          Makes sure that makemigrations exits if in merge mode with no conflicts.
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Fixed #22862 -- Added --noinput option to makemigrations.

Thanks artortenburger for the report. 
tests/migrations/test_commands.py