Commits

Mikhail Korobov committed 4978480

тесты через tox

Comments (0)

Files changed (3)

 build/
 dist/
 MANIFEST
+.tox
 
 #my files
 my_tests.py
+[tox]
+envlist = py25,py26,py27,pypy,py_django12,py_django14
+
+[testenv]
+deps=
+    django == 1.3.1
+    south
+
+commands=
+    python yandex_maps_tests/runtests.py
+
+[testenv:py_django12]
+deps=
+    django == 1.2.7
+    south
+
+[testenv:py_django14]
+deps=
+    http://www.djangoproject.com/download/1.4-rc-2/tarball/#egg=django
+    south

yandex_maps_tests/settings.py

 DEBUG = True
 DATABASE_ENGINE = 'sqlite3'
 DATABASE_NAME = 'db.sqlite'
+
+DATABASES = {
+    'default': {
+        'ENGINE': 'django.db.backends.sqlite3',
+        'NAME': 'db.sqlite'
+    }
+}
 ROOT_URLCONF = 'urls'
 TEMPLATE_DIRS = (os.path.join(PROJECT_ROOT, 'templates'),)
 
+SECRET_KEY = '123'
+
 # мой ключ для домена example.com
 YANDEX_MAPS_API_KEY = "AOmQeUwBAAAAxp1AOQIAlTD0uSCCp1ukf-GmyqC5tbvCGAgAAAAAAAAAAAAeazHdQX6EPpcOJnuUPR-QlXyJPQ=="
 
     'yandex_maps',
     'test_app',
 #    'devserver',
-#    'south'
+    'south',
 )