old_contents: import os
  
  os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
  
  from django.core import management
  
  apps = [
      'test',
      'core',
      'exporting',
      'formatters',
      'lexicon',
      'events',
      'history',
      'models',
      'query',
      'sets',
      'stats',
      'search',
      'subcommands',
      'validation',
  ]
  
  management.call_command(*apps)
  
new_contents: import os
  import sys
  
  os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
  
  from django.core import management
  
  apps = sys.argv[1:]
  
  if not apps:
      apps = [
          'core',
          'exporting',
          'formatters',
          'lexicon',
          'events',
          'history',
          'models',
          'query',
          'sets',
          'stats',
          'search',
          'subcommands',
          'validation',
      ]
  
  management.call_command('test', *apps)
  
subject: Allow apps to be specified from the command line