[Python-modules-commits] r29596 - in packages/python-django-jsonfield/trunk/debian (4 files)

bam at users.alioth.debian.org bam at users.alioth.debian.org
Thu Jul 3 01:58:59 UTC 2014


    Date: Thursday, July 3, 2014 @ 01:58:58
  Author: bam
Revision: 29596

Fix the tests.

Added:
  packages/python-django-jsonfield/trunk/debian/clean
  packages/python-django-jsonfield/trunk/debian/run_tests.py
Modified:
  packages/python-django-jsonfield/trunk/debian/control
  packages/python-django-jsonfield/trunk/debian/rules

Added: packages/python-django-jsonfield/trunk/debian/clean
===================================================================
--- packages/python-django-jsonfield/trunk/debian/clean	                        (rev 0)
+++ packages/python-django-jsonfield/trunk/debian/clean	2014-07-03 01:58:58 UTC (rev 29596)
@@ -0,0 +1 @@
+tests.db

Modified: packages/python-django-jsonfield/trunk/debian/control
===================================================================
--- packages/python-django-jsonfield/trunk/debian/control	2014-07-03 01:58:11 UTC (rev 29595)
+++ packages/python-django-jsonfield/trunk/debian/control	2014-07-03 01:58:58 UTC (rev 29596)
@@ -5,9 +5,9 @@
 Uploaders: Raphaël Hertzog <hertzog at debian.org>,
  Brian May <bam at debian.org>
 Standards-Version: 3.9.5
-Build-Depends: debhelper (>= 9), dh-python, python-django,
- python-all, python-setuptools,
- python3-all, python3-setuptools
+Build-Depends: debhelper (>= 9), dh-python,
+ python-all, python-setuptools, python-django,
+ python3-all, python3-setuptools, python3-django,
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-django-jsonfield/trunk/
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-django-tagging/trunk/
 Homepage: https://bitbucket.org/schinckel/django-jsonfield/

Modified: packages/python-django-jsonfield/trunk/debian/rules
===================================================================
--- packages/python-django-jsonfield/trunk/debian/rules	2014-07-03 01:58:11 UTC (rev 29595)
+++ packages/python-django-jsonfield/trunk/debian/rules	2014-07-03 01:58:58 UTC (rev 29596)
@@ -4,3 +4,8 @@
 
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
+
+.PHONY: override_dh_auto_test
+override_dh_auto_test:
+	python2 debian/run_tests.py
+	python3 debian/run_tests.py

Added: packages/python-django-jsonfield/trunk/debian/run_tests.py
===================================================================
--- packages/python-django-jsonfield/trunk/debian/run_tests.py	                        (rev 0)
+++ packages/python-django-jsonfield/trunk/debian/run_tests.py	2014-07-03 01:58:58 UTC (rev 29596)
@@ -0,0 +1,23 @@
+#!/usr/bin/python
+
+import os
+import sys
+sys.path.insert(0, os.getcwd())
+
+from django.conf import settings
+settings.configure(
+    INSTALLED_APPS=['jsonfield'],
+    DATABASES={
+        'default': {
+            'ENGINE': 'django.db.backends.sqlite3',
+            'NAME': 'tests.db',
+            'USER': '',
+            'PASSWORD': '',
+            'HOST': '',
+            'PORT': '',
+        }
+    }
+)
+
+from django.core import management
+management.call_command('test')




More information about the Python-modules-commits mailing list