From dfe8d17bd1a32f08fc5ef57125a93f1b820ea11e Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Sun, 31 May 2026 17:36:22 -0400 Subject: [PATCH] Quiet mypy on the inference_services test assignment inference_services is a schema-loaded config option, so it's not a static attribute on GalaxyAppConfiguration -- production code reads it via getattr for the same reason. The two celery schedule tests set it directly, which trips mypy's attr-defined check, so mark those assignments type: ignore the way the other config-poking unit tests (test_vault, test_error_reporting) do. --- test/unit/app/test_celery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/app/test_celery.py b/test/unit/app/test_celery.py index bf2bcb1d040..fb68368560d 100644 --- a/test/unit/app/test_celery.py +++ b/test/unit/app/test_celery.py @@ -35,7 +35,7 @@ def test_default_configuration(): def test_gtn_refresh_schedules_when_inference_configured(): config = GalaxyAppConfiguration(override_tempdir=False) - config.inference_services = {"default": {"model": "test"}} + config.inference_services = {"default": {"model": "test"}} # type: ignore[attr-defined] app = GalaxyCelery("test-gtn-schedule") setup_periodic_tasks(config, app) assert app.conf.beat_schedule["refresh-gtn-database"] == { @@ -46,7 +46,7 @@ def test_gtn_refresh_schedules_when_inference_configured(): def test_iwc_refresh_schedules_when_inference_configured(): config = GalaxyAppConfiguration(override_tempdir=False) - config.inference_services = {"default": {"model": "test"}} + config.inference_services = {"default": {"model": "test"}} # type: ignore[attr-defined] app = GalaxyCelery("test-iwc-schedule") setup_periodic_tasks(config, app) assert app.conf.beat_schedule["refresh-iwc-manifest"] == {