]> git-server-git.apps.pok.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:29:41 +0000 (09:29 -0400)
commita7a9a2d2c8f1f55d4236cf549021a42b241bd4b2
treef2a93b006e7939268aa8dea1110749ddc7751da7
parentf0a57d4565227026b6e67ab118f0c9ac2aecc9f8
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