diff --git a/test/examples/README.rst b/test/examples/README.rst new file mode 100644 index 00000000..ad8c5f76 --- /dev/null +++ b/test/examples/README.rst @@ -0,0 +1,5 @@ +Examples +======== + +Here you can find project structures that match other Python projects. This is +then used to check if jedi understands these structures. diff --git a/test/examples/django/app/__init__.py b/test/examples/django/app/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/test/examples/django/app/models.py b/test/examples/django/app/models.py new file mode 100644 index 00000000..7890e53c --- /dev/null +++ b/test/examples/django/app/models.py @@ -0,0 +1 @@ +SomeModel = "bar" diff --git a/test/examples/django/manage.py b/test/examples/django/manage.py new file mode 100644 index 00000000..8940f07e --- /dev/null +++ b/test/examples/django/manage.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python +import os +import sys + +if __name__ == "__main__": + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "foobar.settings") + + from django.core.management import execute_from_command_line + + execute_from_command_line(sys.argv)