betty.test_utils.serve module

Test utilities for betty.serve.

class betty.test_utils.serve.NoOpProjectServer[source]

Bases: NoOpServer, ProjectServer

A project server that does nothing.

class betty.test_utils.serve.NoOpServer[source]

Bases: Server

A server that does nothing.

__init__(*_: Any, **__: Any)[source]
property public_url: str

The server’s public URL.

async show() None[source]

Show the served site to the user.

async start() None[source]

Start the server.

async stop() None[source]

Stop the server.