Bug#1028877: flask-dance: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 3.11" returned exit code 13

2023-01-19 Thread Simon Quigley

Hello,

I have uploaded a fix for this bug to Ubuntu, and uploaded it to the DELAYED/5 
queue also.

If you would rather this be a team upload or would like the delay shortened, 
please do let me know.

Thanks,
--
Simon Quigley
si...@tsimonq2.net
tsimonq2 on LiberaChat and OFTC
@tsimonq2:linuxdelta.com on Matrix
5C7A BEA2 0F86 3045 9CC8
C8B5 E27F 2CF8 458C 2FA4


OpenPGP_signature
Description: OpenPGP digital signature


Bug#1028877: flask-dance: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 3.11" returned exit code 13

2023-01-14 Thread Lucas Nussbaum
Source: flask-dance
Version: 6.2.0-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20230113 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<>'
> PYBUILD_SYSTEM=custom \
> PYBUILD_TEST_ARGS="python3-coverage run -m pytest -m \"not 
> install_required\"" \
> dh_auto_test
> I: pybuild base:240: python3-coverage run -m pytest -m "not install_required"
> = test session starts 
> ==
> platform linux -- Python 3.11.1, pytest-7.2.0, pluggy-1.0.0+repack
> rootdir: /<>, configfile: pyproject.toml
> plugins: Flask-Dance-6.2.0, mock-3.8.2, betamax-0.8.1
> collected 196 items / 1 deselected / 195 selected
> 
> tests/test_utils.py ..   [  
> 1%]
> tests/consumer/test_oauth1.py    [ 
> 11%]
> tests/consumer/test_oauth2.py F...F...   [ 
> 23%]
> tests/consumer/test_requests.py ..   [ 
> 28%]
> tests/consumer/storage/test_sqla.py  [ 
> 34%]
> tests/contrib/test_atlassian.py ..   [ 
> 37%]
> tests/contrib/test_authentiq.py  [ 
> 40%]
> tests/contrib/test_azure.py ...  [ 
> 43%]
> tests/contrib/test_digitalocean.py . [ 
> 46%]
> tests/contrib/test_discord.py    [ 
> 48%]
> tests/contrib/test_dropbox.py    [ 
> 52%]
> tests/contrib/test_facebook.py . [ 
> 54%]
> tests/contrib/test_fitbit.py ... [ 
> 56%]
> tests/contrib/test_github.py ... [ 
> 57%]
> tests/contrib/test_gitlab.py ..  [ 
> 61%]
> tests/contrib/test_google.py .   [ 
> 67%]
> tests/contrib/test_heroku.py ... [ 
> 69%]
> tests/contrib/test_jira.py ...   [ 
> 72%]
> tests/contrib/test_linkedin.py ...   [ 
> 74%]
> tests/contrib/test_meetup.py [ 
> 76%]
> tests/contrib/test_nylas.py ...  [ 
> 77%]
> tests/contrib/test_orcid.py  [ 
> 80%]
> tests/contrib/test_osm.py ...[ 
> 81%]
> tests/contrib/test_reddit.py [ 
> 83%]
> tests/contrib/test_salesforce.py [ 
> 87%]
> tests/contrib/test_slack.py .[ 
> 92%]
> tests/contrib/test_spotify.py ...[ 
> 93%]
> tests/contrib/test_strava.py ... [ 
> 95%]
> tests/contrib/test_twitch.py ... [ 
> 96%]
> tests/contrib/test_twitter.py ...[ 
> 98%]
> tests/contrib/test_zoho.py ...   
> [100%]
> 
> === FAILURES 
> ===
> _ test_authorized_url 
> __
> 
> @responses.activate
> def test_authorized_url():
> responses.add(
> responses.POST,
> "https://example.com/oauth/access_token;,
> 
> body='{"access_token":"foobar","token_type":"bearer","scope":"admin"}',
> )
> app, _ = make_app()
> with app.test_client() as client:
> # reset the session before the request
> with client.session_transaction() as sess:
> sess["test-service_oauth_state"] = "random-string"
> # make the request
> resp = client.get(
> 
> "/login/test-service/authorized?code=secret-code=random-string",
> base_url="https://a.b.c;,
> )
> # check that we redirected the client
> assert resp.status_code == 302
> assert resp.headers["Location"] in ("https://a.b.c/;, "/")
> # check that we obtained an access token
> assert len(responses.calls) == 1
> request_data = dict(parse_qsl(responses.calls[0].request.body))
> assert (
> request_data["redirect_uri"]
> == "https://a.b.c/login/test-service/authorized;
> )
> # check that we stored the access token in the session
> with