File: runtests.py

package info (click to toggle)
django-cors-headers 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 200 kB
  • sloc: python: 855; makefile: 7
file content (17 lines) | stat: -rwxr-xr-x 307 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function

import os
import sys

import pytest


def main():
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tests.settings')
    return pytest.main()


if __name__ == '__main__':
    sys.exit(main())