Skip to content

Commit

Permalink
Skip incompatible integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasw committed May 22, 2015
1 parent c405aa3 commit 8d507d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions integration_tests/streaming_proxy_tests.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import json
from urlparse import urljoin

import django
from django.test import LiveServerTestCase
from unittest2 import skipIf


@skipIf(
django.VERSION < (1, 5), "requires Django >= 1.5 for streaming proxies")
class StreamHttpProxyingGoodRequests(LiveServerTestCase):
def setUp(self):
self.url = urljoin(self.live_server_url, '/httpbin-stream/get?foo=bar')
Expand All @@ -18,6 +22,8 @@ def test_sends_query_string_upstream(self):
self.assertEqual(self.response.json_content['args']['foo'], 'bar')


@skipIf(
django.VERSION < (1, 5), "requires Django >= 1.5 for streaming proxies")
class StreamHttpProxyingBadRequests(LiveServerTestCase):
def setUp(self):
self.url = urljoin(self.live_server_url, '/httpbin-stream/status/412')
Expand Down

0 comments on commit 8d507d7

Please sign in to comment.