]> git.apps.os.sepia.ceph.com Git - s3-tests.git/commit
website: routing_setup() as pytest fixture
authorCasey Bodley <cbodley@redhat.com>
Wed, 4 Jun 2025 22:31:39 +0000 (18:31 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 6 Jun 2025 13:30:43 +0000 (09:30 -0400)
commit4af87de451a76d403af19e72c863e3678363197b
tree01ca429cce9b79ae8784e01717f21294c3dbe89d
parent7a87047015bec702b5964323b2beaecbed0e6d6b
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>
(cherry picked from commit 9839a407c2353125bb867dec67a8f9960b1a2065)
s3tests/functional/test_s3_website.py