File: run_tests.py

package info (click to toggle)
python-django-jsonfield 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 184 kB
  • sloc: python: 550; makefile: 6
file content (26 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/python

import os
import sys
sys.path.insert(0, os.getcwd())

from django.conf import settings
settings.configure(
    INSTALLED_APPS=['jsonfield'],
    DATABASES={
        'default': {
            'ENGINE': 'django.db.backends.sqlite3',
            'NAME': 'tests.db',
            'USER': '',
            'PASSWORD': '',
            'HOST': '',
            'PORT': '',
        }
    }
)

import django
django.setup()

from django.core import management
management.call_command('test')