Learn more about these different git repos.
Other Git URLs
Tests for copr-frontend package are failing on F37/Rawhide.
copr-frontend
I think it is caused by the python3-flask upgrade from
python3-flask
python3-flask-2.0.3-1.fc36.noarch
to
python3-flask-2.2.2-1.fc37.noarch
I think this upstream issue might be related https://github.com/pallets/flask/issues/4734
I also think that in our case, the issue is related to the TransactionDecorator. As an experiment, I tried
TransactionDecorator
./run_tests.sh --no-cov -s -k test_copr_user_can_add_distgit_package
Which is one of the failing tests. Then I removed the @TransactionDecorator("u1") from it and replaced each
@TransactionDecorator("u1")
self.test_client.post(endpoint, data=data, follow_redirects=True)
with the following block
user = self.u1 self.transaction_user = user self.transaction_username = user.username with app.test_client() as test_client: with test_client.session_transaction() as session: session["openid"] = user.username response = test_client.post(endpoint, data=data, follow_redirects=True)
And the test is now passing. I think the trick is in creating app.test_client() for every request instead of one for each test method.
app.test_client()
Modified in PR#2298
Commit 1e368b8 fixes this issue
Commit 2974de9 fixes this issue
Login to comment on this ticket.