Ejemplo n.º 1
0
def cli(ctx: Context, verbose: bool, log_format: str) -> None:
    """Suite of test mapping related commands, see the commands help for more details."""
    ctx.ensure_object(dict)
    ctx.obj["evg_api"] = get_evg_api()

    verbosity = Verbosity.DEBUG if verbose else Verbosity.INFO
    config_logging(verbosity, human_readable=log_format == "text")
Ejemplo n.º 2
0
def cli(ctx: Context, verbose: bool, log_format: str) -> None:
    """Entry point for the cli interface. It sets up the evg api instance and logging."""
    ctx.ensure_object(dict)
    ctx.obj["evg_api"] = get_evg_api()

    verbosity = Verbosity.DEBUG if verbose else Verbosity.INFO
    config_logging(verbosity, human_readable=log_format == "text")
Ejemplo n.º 3
0
def cli(ctx: Context, verbose: str, log_format: str, mongo_uri: str) -> None:
    """Suite of selected-tests commands, see the commands help for more details."""
    ctx.ensure_object(dict)
    ctx.obj["mongo"] = MongoWrapper.connect(mongo_uri)
    ctx.obj["evg_api"] = get_evg_api()

    verbosity = Verbosity.DEBUG if verbose else Verbosity.INFO
    config_logging(verbosity, human_readable=log_format == "text")
Ejemplo n.º 4
0
def cli(ctx: Context, verbose: str, mongo_uri: str) -> None:
    """Entry point for the cli interface. It sets up the evg api instance and logging."""
    ctx.ensure_object(dict)
    ctx.obj["mongo"] = MongoWrapper.connect(mongo_uri)
    ctx.obj["evg_api"] = get_evg_api()

    verbosity = Verbosity.DEBUG if verbose else Verbosity.INFO
    config_logging(verbosity, human_readable=False)
Ejemplo n.º 5
0
"""ASGI Support."""

from selectedtests.app.app import create_app
from selectedtests.helpers import get_evg_api, get_mongo_wrapper

app = create_app(get_mongo_wrapper(), get_evg_api())