Skip to content

Hooks

pytest_get_debug_info(item)

Return object with test debug information.

Source code in pytest_qaseio/hooks.py
25
26
27
@pytest.hookspec(firstresult=True)
def pytest_get_debug_info(item: pytest.Function) -> DebugInfo | None:
    """Return object with test debug information."""

pytest_get_run_name(config, env, browser)

Return name for test run to use in Qase.

Source code in pytest_qaseio/hooks.py
30
31
32
33
@pytest.hookspec(firstresult=True)
def pytest_get_run_name(config: pytest.Config, env: str, browser: str) -> str:
    """Return name for test run to use in Qase."""
    return ""

pytest_qase_browser_name(config)

Return name of browser to use in test run name and attachments path.

Source code in pytest_qaseio/hooks.py
20
21
22
@pytest.hookspec(firstresult=True)
def pytest_qase_browser_name(config: pytest.Config) -> str:  # type: ignore
    """Return name of browser to use in test run name and attachments path."""

pytest_qase_file_storages()

Return mapping options to file storage instance.

Example

{ "qase": QaseFileStorage(), }

Source code in pytest_qaseio/hooks.py
 8
 9
10
11
12
13
14
15
16
17
@pytest.hookspec(firstresult=True)
def pytest_qase_file_storages() -> dict[str, storage.FileStorage]:  # type: ignore
    """Return mapping options to file storage instance.

    Example:
        {
            "qase": QaseFileStorage(),
        }

    """