import os

os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'

from django.core import management
management.call_command('test', 'resources', 'forms', 'tokens')

import os
import sys

os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'

from django.core import management

apps = sys.argv[1:]

if not apps:
    apps = [
        'resources',
        'forms',
        'tokens',
    ]

management.call_command('test', *apps)

Allow apps to be specified from the command line
Allow apps to be specified from the command line

  import os
+ import sys
  
  os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
  
  from django.core import management
- management.call_command('test', 'resources', 'forms', 'tokens')
  
+ apps = sys.argv[1:]
+ 
+ if not apps:
+     apps = [
+         'resources',
+         'forms',
+         'tokens',
+     ]
+ 
+ management.call_command('test', *apps)
+ 
Allow apps to be specified from the command line
## Code Before:
import os

os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'

from django.core import management
management.call_command('test', 'resources', 'forms', 'tokens')

## Instruction:
Allow apps to be specified from the command line
## Code After:
import os
import sys

os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'

from django.core import management

apps = sys.argv[1:]

if not apps:
    apps = [
        'resources',
        'forms',
        'tokens',
    ]

management.call_command('test', *apps)
