Tests: add test project

* manage.py file at the root of the project
* targetting the project located at tests/test_project/settings.py

That allows testing the linter through just calling it on the project itself.
Using the new method coming soon: `python manage.py lintmigrations`
This commit is contained in:
David Wobrock committed 2019-05-12 15:32:57 +02:00
1 parent fdd6b9b06a
commit 26ed4ecf62
85 files changed
+843

No files matched your search

Executable
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.test_project.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)