File: replace-flask_abort-by-_aborter.patch

package info (click to toggle)
flask-restful 0.3.10-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,312 kB
  • sloc: python: 3,945; makefile: 277; pascal: 26; sh: 20
file content (17 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Replace flask_abort by _aborter
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/1024913
Forwarded: no
Last-Update: 2022-12-15

--- flask-restful.orig/tests/test_api.py
+++ flask-restful/tests/test_api.py
@@ -840,7 +840,7 @@
                 flask_abort(304, etag='myETag')
 
         api.add_resource(Foo1, '/foo')
-        _aborter.mapping.update({304: NotModified})
+        app.aborter.mapping[304] = NotModified
 
         with app.test_client() as client:
             foo = client.get('/foo')