Mikhail Korobov avatar Mikhail Korobov committed 58cfb53

Test project (without tests ;)

Comments (0)

Files changed (10)

Add a comment to this file

easy_maps_tests/__init__.py

Empty file added.

easy_maps_tests/manage.py

+#!/usr/bin/env python
+from django.core.management import execute_manager
+try:
+    import settings # Assumed to be in the same directory.
+except ImportError:
+    import sys
+    sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
+    sys.exit(1)
+
+if __name__ == "__main__":
+    execute_manager(settings)

easy_maps_tests/runtests.py

+#!/usr/bin/env python
+import sys
+from django.core.management import execute_manager
+import settings
+
+sys.argv.insert(1, 'test')
+
+if len(sys.argv) == 2:
+    sys.argv.append('easy_maps')
+    sys.argv.append('test_app')
+
+if __name__ == "__main__":
+    execute_manager(settings)
+

easy_maps_tests/settings.py

+import os, sys
+PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
+sys.path.insert(0, os.path.abspath(os.path.join(PROJECT_ROOT, '..')))
+
+DEBUG = True
+DATABASE_ENGINE = 'sqlite3'
+DATABASE_NAME = 'db.sqlite'
+ROOT_URLCONF = 'urls'
+TEMPLATE_DIRS = (os.path.join(PROJECT_ROOT, 'templates'),)
+
+INSTALLED_APPS=(
+    'easy_maps',
+    'test_app',
+#    'devserver',
+    'south'
+)

easy_maps_tests/templates/404.html

+404

easy_maps_tests/templates/500.html

+500

easy_maps_tests/templates/index.html

+<html>
+    <body>
+        {% load easy_maps_tags %}
+        {% easy_map "Ekaterinburg, Mira 33" 300 400 using "easy_maps/map.html" %}
+    </body>
+</html>
Add a comment to this file

easy_maps_tests/test_app/__init__.py

Empty file added.

easy_maps_tests/test_app/models.py

+#hello, testrunner!

easy_maps_tests/urls.py

+from django.conf.urls.defaults import *
+from django.views.generic.simple import direct_to_template
+
+urlpatterns = patterns('',
+    url(r'^$', direct_to_template, {'template': 'index.html'}, 'index')
+)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.