From 60f89522a7ba30f73e0e35234ffb35c7c1cbfe91 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 30 Jan 2018 00:08:17 +0100 Subject: [PATCH] Forgot to add the examples folder --- test/examples/README.rst | 5 +++++ test/examples/django/app/__init__.py | 0 test/examples/django/app/models.py | 1 + test/examples/django/manage.py | 10 ++++++++++ 4 files changed, 16 insertions(+) create mode 100644 test/examples/README.rst create mode 100644 test/examples/django/app/__init__.py create mode 100644 test/examples/django/app/models.py create mode 100644 test/examples/django/manage.py 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)