[Python-modules-commits] r28739 - in packages/django-celery/trunk/debian/patches (1 file)

bam at users.alioth.debian.org bam at users.alioth.debian.org
Fri May 2 04:52:19 UTC 2014


    Date: Friday, May 2, 2014 @ 04:52:12
  Author: bam
Revision: 28739

Remove obsolete file.

Deleted:
  packages/django-celery/trunk/debian/patches/skip_tests.patch

Deleted: packages/django-celery/trunk/debian/patches/skip_tests.patch
===================================================================
--- packages/django-celery/trunk/debian/patches/skip_tests.patch	2014-05-02 04:43:43 UTC (rev 28738)
+++ packages/django-celery/trunk/debian/patches/skip_tests.patch	2014-05-02 04:52:12 UTC (rev 28739)
@@ -1,42 +0,0 @@
-Description: disable certain unittests by environment
- This patch allows to set the environment variable DEB_NETWORK_TESTS to 
- "disabled" which will cause certain tests that rely on networking 
- (loopback interface) to be skipped. This is used for the webhook tests
- by now.
-Author: Michael Fladischer <FladischerMichael at fladi.at>
-Last-Update: 2012-05-20
-Forwarded: not-needed
-
---- a/djcelery/tests/test_views.py
-+++ b/djcelery/tests/test_views.py
-@@ -1,12 +1,14 @@
- from __future__ import absolute_import
- 
- import sys
-+import os
- 
- from functools import partial
- 
- from django.core.urlresolvers import reverse
- from django.http import HttpResponse
- from django.test.testcases import TestCase as DjangoTestCase
-+from django.utils.unittest import skipIf
- from django.template import TemplateDoesNotExist
- 
- from anyjson import deserialize
-@@ -128,6 +130,7 @@
- 
- class test_webhook_task(ViewTestCase):
- 
-+    @skipIf(os.environ.get("DEB_NETWORK_TESTS", False) == "disabled", "network tests disabled by environment")
-     def test_successful_request(self):
- 
-         @task_webhook
-@@ -141,6 +144,7 @@
-         self.assertDictContainsSubset({'status': 'success', 'retval': 20},
-                                       deserialize(response.content))
- 
-+    @skipIf(os.environ.get("DEB_NETWORK_TESTS", False) == "disabled", "network tests disabled by environment")
-     def test_failed_request(self):
- 
-         @task_webhook




More information about the Python-modules-commits mailing list