]> git.apps.os.sepia.ceph.com Git - s3-tests.git/commit
website: use pytest parametrize for test_routing_generator()
authorCasey Bodley <cbodley@redhat.com>
Wed, 4 Jun 2025 16:31:44 +0000 (12:31 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 6 Jun 2025 13:30:43 +0000 (09:30 -0400)
commit7a87047015bec702b5964323b2beaecbed0e6d6b
tree39eea474e128003cb3d2eb6f4a528af90ad4a88e
parent89106644e058fb93005f538de738775dac1898dd
website: use pytest parametrize for test_routing_generator()

resolves error with recent pytest:

==================================== ERRORS ====================================
____________ ERROR collecting s3tests/functional/test_s3_website.py ____________
'yield' keyword is allowed in fixtures, but not in tests (test_routing_generator)

use https://docs.pytest.org/en/7.1.x/example/parametrize.html instead to
generate a test_routing_generator() for each entry in ROUTING_RULES_TESTS

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit d587a4a49983651258f91a8a47b7faf0e7138ec3)
s3tests/functional/test_s3_website.py