Some tests for various API endpoints.
[wolnelektury.git] / src / manage.py
1 #!/usr/bin/env python
2 import os
3 import sys
4
5 ROOT = os.path.dirname(os.path.abspath(__file__))
6 sys.path = [
7     os.path.join(ROOT, '../lib/librarian'),
8 ] + sys.path
9
10 if __name__ == "__main__":
11     os.environ.setdefault(
12         "DJANGO_SETTINGS_MODULE",
13         "wolnelektury.settings.test"
14         if 'test' in sys.argv
15         else "wolnelektury.settings")
16
17     from django.core.management import execute_from_command_line
18
19     execute_from_command_line(sys.argv)