Registry / testing / qase-pytest

qase-pytest

JSON →
library8.3.1pypypiunverified

Qase Pytest Plugin integrates pytest with Qase TestOps and Qase Report, allowing you to publish test results, manage test cases, and track test runs. Version 8.1.0 requires Python >=3.9. The library is actively maintained with regular releases.

pip install qase-pytest
INSTALL
IMPORT
SIG · QASE-PYTEST
Q
qase-pytest
testingpythonv8.3.1
Install
5.6s avg
Import
Disk
48MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v8.3.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 48.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 5.6s · import 0.000s · 48MB
48MB installed
● package 48MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

qase_api
from qase.pytest import qase_api
from qaseio.pytest import qase_api

Set up Qase API token and project code via environment variables, then run 'pytest --qase' to publish results.

# conftest.py import os import pytest from qaseio.pytest import qase_api @pytest.fixture def api_token(qase_api): qase_api.config.api_token = os.environ.get('QASE_API_TOKEN', '') qase_api.config.project_code = os.environ.get('QASE_PROJECT_CODE', 'PROJ') return qase_api def test_example(api_token): assert 1 == 1
Debug
Known issues
breakingVersion 8.0.0 replaced the old 'qase' marker with 'qase_id' marker for attaching test case IDs. Existing tests using '@pytest.mark.qase(1)' will not be recognized.
fix
Replace '@pytest.mark.qase(id)' with '@pytest.mark.qase_id(id)'.
affects: >=8.0.0
gotchaThe 'qase_api' fixture must be imported from qaseio.pytest, not from qaseio. Importing from the wrong module will cause a FixtureLookupError.
fix
Use 'from qaseio.pytest import qase_api' in your conftest.py.
affects: >=7.0.0
deprecatedIn version 7.x, the 'QASE_MODE' environment variable was used to switch between report and testops modes. In 8.x, use '--qase-mode' CLI argument or 'mode' in config.
fix
Use 'pytest --qase-mode testops' instead of setting QASE_MODE environment variable.
affects: >=8.0.0
Upgrade
Version history
8.3.1latest on PyPI · released Jun 4, 2026
Audit
Dependencies
pytestrequiredCore testing framework
qase-python-commonsrequiredShared Qase client utilities
Agent activity
12 hits · last 30 days
node
10
Resources
qase-pytest — pip install qase-pytest · libregistry