File: manage_dev.py

package info (click to toggle)
django-ldapdb 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 284 kB
  • sloc: python: 1,989; makefile: 39
file content (19 lines) | stat: -rwxr-xr-x 490 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This software is distributed under the two-clause BSD license.
# Copyright (c) The django-ldapdb project

import os
import sys

import django
from django.core.management import execute_from_command_line

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "examples.settings")

def run_tests():
    execute_from_command_line([os.path.abspath(__file__), 'test'])
    sys.exit(0)

if __name__ == "__main__":
    execute_from_command_line(sys.argv)