Exemplo n.º 1
0
def custom_test_server():
    container = ServerContainer()
    container.wire(modules=[authenticate])
    app = FastAPI()
    app.container = container
    app.include_router(authenticate.router)
    yield app
Exemplo n.º 2
0
def custom_test_server():
    container = ServerContainer()
    container.wire(modules=[users])
    app = FastAPI()
    app.container = container
    app.include_router(users.router)
    yield app
Exemplo n.º 3
0
def custom_test_server():
    container = ServerContainer()
    container.wire(modules=[emissions])
    app = FastAPI()
    app.container = container
    app.include_router(emissions.router)
    add_pagination(app)
    yield app
Exemplo n.º 4
0
def init_container():
    container = ServerContainer()
    container.wire(modules=[
        emissions,
        runs,
        experiments,
        projects,
        teams,
        organizations,
        users,
        authenticate,
    ])
    return container