Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a test mock that went out of sync after a recent commit #1612

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions betty/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@
import click
from click import get_current_context, Context, Option, Command, Parameter

from betty import about, generate, load, documentation, locale
from betty import about, generate, load, documentation, locale, serve
from betty.app import App
from betty.asyncio import wait_to_thread
from betty.contextlib import SynchronizedContextManager
from betty.error import UserFacingError
from betty.locale import Str, DEFAULT_LOCALIZER
from betty.logging import CliHandler
from betty.serde.load import AssertionFailed
from betty.serve import BuiltinAppServer

if TYPE_CHECKING:
from PyQt6.QtWidgets import QMainWindow
Expand Down Expand Up @@ -331,7 +330,7 @@ async def _generate(app: App) -> None:
@click.command(help="Serve a generated site.")
@app_command
async def _serve(app: App) -> None:
async with BuiltinAppServer(app) as server:
async with serve.BuiltinAppServer(app) as server:
await server.show()
while True:
await asyncio.sleep(999)
Expand Down
Loading