1
0
python-httpbin/werkzeug.patch
Matej Cepl 7a3966f616 Accepting request 969571 from home:bnavigator:branches:devel:languages:python:flask
- Truncate werkzeug.patch as Flask changed their behavior back to
  returning relative URLs.
- Update fix-setup-py.patch accordingly
- Update _service file (rerun modifies the archive, but keeps same
  tag)

OBS-URL: https://build.opensuse.org/request/show/969571
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpbin?expand=0&rev=20
2022-04-12 23:11:11 +00:00

35 lines
1.6 KiB
Diff

From b6cb2b47a3813da5df8dbffada284b72d7fe099e Mon Sep 17 00:00:00 2001
From: Simon Kowallik <github@simonkowallik.com>
Date: Sat, 18 May 2019 13:10:08 +0200
Subject: [PATCH] fix #554: update tests, Pipfile, Pipfile.lock for
werkzeug>=0.15.1
- update test_httpbin.py to reflect new behaviour of werkzeug
- require werkzeug>=0.15.1
---
Pipfile | 2 +-
Pipfile.lock | 6 +++---
test_httpbin.py | 2 --
3 files changed, 4 insertions(+), 6 deletions(-)
Index: python-httpbin-0.7.0+git20181107.f8ec666/test_httpbin.py
===================================================================
--- python-httpbin-0.7.0+git20181107.f8ec666.orig/test_httpbin.py
+++ python-httpbin-0.7.0+git20181107.f8ec666/test_httpbin.py
@@ -148,7 +148,6 @@ class HttpbinTestCase(unittest.TestCase)
data = json.loads(response.data.decode('utf-8'))
self.assertEqual(data['args'], {})
self.assertEqual(data['headers']['Host'], 'localhost')
- self.assertEqual(data['headers']['Content-Length'], '0')
self.assertEqual(data['headers']['User-Agent'], 'test')
# self.assertEqual(data['origin'], None)
self.assertEqual(data['url'], 'http://localhost/get')
@@ -162,7 +161,6 @@ class HttpbinTestCase(unittest.TestCase)
data = json.loads(response.data.decode('utf-8'))
self.assertEqual(data['args'], {})
self.assertEqual(data['headers']['Host'], 'localhost')
- self.assertEqual(data['headers']['Content-Length'], '0')
self.assertEqual(data['url'], 'http://localhost/anything/foo/bar')
self.assertEqual(data['method'], 'GET')
self.assertTrue(response.data.endswith(b'\n'))