Пример #1
0
def main():
    os.environ["DJANGO_SETTINGS_MODULE"] = "spade.tests.settings"
    add_vendor_lib()
    args = sys.argv[1:]
    if not args:
        args = ["spade/tests/"]
    raise SystemExit(pytest_main(args))
Пример #2
0
def main():
    os.environ["DJANGO_SETTINGS_MODULE"] = "spade.tests.settings"
    add_vendor_lib()
    args = sys.argv[1:]
    if not args:
        args = ["spade/tests/"]
    raise SystemExit(pytest_main(args))
Пример #3
0
#!/usr/bin/env python
import os, sys

from spade.vendor import add_vendor_lib

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "spade.settings.default")

    add_vendor_lib()

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)