mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 15:06:19 -05:00
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:
parent
102aded9cc
commit
4d17b95533
1 changed files with 3 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue