uncommitted - flask-dance

Ready changes

Summary

Import uploads missing from VCS:

Diff

diff --git a/debian/changelog b/debian/changelog
index 0dae924..949092e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+flask-dance (6.2.0-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix the autopkgtest using an upstream patch (Closes: #1028877).
+
+ -- Simon Quigley <tsimonq2@debian.org>  Thu, 19 Jan 2023 18:02:16 -0600
+
 flask-dance (6.2.0-2) unstable; urgency=medium
 
   * Source only upload for migration to testing.
diff --git a/debian/patches/fix_test_url.patch b/debian/patches/fix_test_url.patch
new file mode 100644
index 0000000..c73c683
--- /dev/null
+++ b/debian/patches/fix_test_url.patch
@@ -0,0 +1,59 @@
+Description: update URL for requests docs
+Author: David Baumgold <david@davidbaumgold.com>
+Origin: upstream
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028877
+Applied-Upstream: c961710fc73f591f8f9fec162c5e0b65ba9dc8a7
+Last-Update: 2023-01-19
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/tests/consumer/storage/test_sqla.py
++++ b/tests/consumer/storage/test_sqla.py
+@@ -64,7 +64,7 @@ def app(blueprint, db, request):
+     app = flask.Flask(__name__)
+     app.config["SQLALCHEMY_DATABASE_URI"] = os.environ.get("DATABASE_URI", "sqlite://")
+     app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
+-    app.config["CACHE_TYPE"] = "simple"
++    app.config["CACHE_TYPE"] = "SimpleCache"
+     app.secret_key = "secret"
+     app.register_blueprint(blueprint, url_prefix="/login")
+     db.init_app(app)
+--- a/tests/consumer/test_oauth2.py
++++ b/tests/consumer/test_oauth2.py
+@@ -138,12 +138,11 @@ def test_authorized_url():
+             == "https://a.b.c/login/test-service/authorized"
+         )
+         # check that we stored the access token in the session
+-        with client.session_transaction() as sess:
+-            assert sess["test-service_oauth_token"] == {
+-                "access_token": "foobar",
+-                "scope": ["admin"],
+-                "token_type": "bearer",
+-            }
++        assert flask.session["test-service_oauth_token"] == {
++            "access_token": "foobar",
++            "scope": ["admin"],
++            "token_type": "bearer",
++        }
+ 
+ 
+ def test_authorized_url_no_state():
+@@ -161,8 +160,7 @@ def test_authorized_url_no_state():
+             "/login/test-service",
+         )
+         # check that there's nothing in the session
+-        with client.session_transaction() as sess:
+-            assert "test-service_oauth_token" not in sess
++        assert "test-service_oauth_token" not in flask.session
+ 
+ 
+ @responses.activate
+@@ -249,8 +247,7 @@ def test_authorized_url_token_lifetime()
+             "expires_in": 300,
+             "expires_at": 1451649901,
+         }
+-        with client.session_transaction() as sess:
+-            assert sess["test-service_oauth_token"] == expected_stored_token
++        assert flask.session["test-service_oauth_token"] == expected_stored_token
+ 
+ 
+ def test_return_expired_token(request):
diff --git a/debian/patches/series b/debian/patches/series
index 5dde407..f0f95f0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Removing-html_theme-since-Flask-Sphinx-Themes-is-not-packaged-yet.patch
+fix_test_url.patch

Run locally

More details

Full run details