def test()

in noxfile.py [0:0]


def test(session):
    session.install(".[develop]")
    session.install("elasticsearch<9")  # tests run against 8.x servers

    if session.posargs:
        argv = session.posargs
    else:
        argv = (
            "-vvv",
            "--cov=elasticsearch_dsl",
            "--cov=tests.test_integration.test_examples",
            "--cov-report=term-missing",
            "--cov-branch",
            "--cov-report=html",
            "tests/",
        )
    session.run("pytest", *argv)