]> git.apps.os.sepia.ceph.com Git - s3-tests.git/commit
website: routing_setup() as pytest fixture 659/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 4 Jun 2025 22:31:39 +0000 (18:31 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 4 Jun 2025 22:44:41 +0000 (18:44 -0400)
commit9839a407c2353125bb867dec67a8f9960b1a2065
treed2a84d8051520ab9b5ab7b50fec0cbc9763a091f
parentd587a4a49983651258f91a8a47b7faf0e7138ec3
website: routing_setup() as pytest fixture

c80e9d2118ca5bcdec5285898a532f8e18faa6b6 had removed the use of
routing_setup() without adding a fixture to replace it. this had broken
routing_check(), but we hadn't noticed it because pytest hadn't
supported the 'yield' pattern in test_routing_generator() to call it

test_routing_generator() now uses this routing_setup fixture to provide
the kwargs that had previously been injected into routing_check() via
@common.with_setup_kwargs(setup=routing_setup, teardown=routing_teardown)

Signed-off-by: Casey Bodley <cbodley@redhat.com>
s3tests/functional/test_s3_website.py