refactor: update imports fabledscryer → roundtable
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
import os
|
||||
import textwrap
|
||||
import pytest
|
||||
from fabledscryer.config import load_bootstrap
|
||||
from roundtable.config import load_bootstrap
|
||||
|
||||
|
||||
def test_load_bootstrap_from_yaml(tmp_path):
|
||||
cfg_file = tmp_path / "config.yaml"
|
||||
cfg_file.write_text(textwrap.dedent("""\
|
||||
database:
|
||||
url: postgresql+asyncpg://user:pass@localhost/fabledscryer
|
||||
url: postgresql+asyncpg://user:pass@localhost/roundtable
|
||||
secret_key: test-secret
|
||||
"""))
|
||||
cfg = load_bootstrap(cfg_file)
|
||||
assert cfg["database_url"] == "postgresql+asyncpg://user:pass@localhost/fabledscryer"
|
||||
assert cfg["database_url"] == "postgresql+asyncpg://user:pass@localhost/roundtable"
|
||||
assert cfg["secret_key"] == "test-secret"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user