fix: tests should not use BuildConfig

test_distribution and test_conversations were using BuildConfig and improper StackConfig semantics

Signed-off-by: Charlie Doern <cdoern@redhat.com>
This commit is contained in:
Charlie Doern 2025-12-01 14:07:17 -05:00
parent 39ad54696c
commit 94506126ae
3 changed files with 48 additions and 56 deletions

View file

@ -44,9 +44,9 @@ async def service():
),
)
register_sqlstore_backends({"sql_test": storage.backends["sql_test"]})
run_config = StackConfig(image_name="test", apis=[], providers={}, storage=storage)
stack_config = StackConfig(image_name="test", apis=[], providers={}, storage=storage)
config = ConversationServiceConfig(run_config=run_config, policy=[])
config = ConversationServiceConfig(config=stack_config, policy=[])
service = ConversationServiceImpl(config, {})
await service.initialize()
yield service
@ -151,9 +151,9 @@ async def test_policy_configuration():
),
)
register_sqlstore_backends({"sql_test": storage.backends["sql_test"]})
run_config = StackConfig(image_name="test", apis=[], providers={}, storage=storage)
stack_config = StackConfig(image_name="test", apis=[], providers={}, storage=storage)
config = ConversationServiceConfig(run_config=run_config, policy=restrictive_policy)
config = ConversationServiceConfig(config=stack_config, policy=restrictive_policy)
service = ConversationServiceImpl(config, {})
await service.initialize()