A config status test attaches the shared context it reads

It passed only when an earlier test in the same worker had attached it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Roland 2026-10-11 17:29:18 -06:00
parent 102aded9cc
commit 4d17b95533
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680

View file

@ -549,7 +549,9 @@ class TestConfigStatusIncludesBackupInfo:
assert status['has_backup_import'] is True
assert 'backup_dates' not in status
def test_non_db_config_no_backup_info(self, test_directory, test_wrolpi_config):
@pytest.mark.asyncio
async def test_non_db_config_no_backup_info(self, test_directory, test_wrolpi_config, async_client):
"""`config_status` reads the shared context, which `async_client` attaches."""
from wrolpi.common import get_wrolpi_config
config = get_wrolpi_config()
status = config.config_status()