Skip to main content

pytest-tstcls

Test Class Base

How to use

Simple Tests

from tstcls import TestClassBase

class TestMyClass(TestClassBase):
    def setup_test(self):
        self.tester = MyClass()

    def test_my_method(self):
        ###
        self.tester.my_method()
        ###

Use Mocks

from tstcls import TestClassBase

class TestMyClass(TestClassBase):
    def setup_test(self):
        self.my_mocked_dependency = Mock()
        self.tester = MyClass(self.my_mocked_dependency)

    def test_my_method(self):
        self.my_mocked_dependency.return_value = 123

        ###
        self.tester.my_method()
        ###

Use fixtures as usual

from tstcls import TestClassBase

class TestMyClass(TestClassBase):
    @pytest.fixture
    def my_fixture(self):
        return 321

    def setup_test(self, my_fixture):
        self.tester = MyClass(my_fixture)

    def test_my_method(self, my_fixture):
        ###
        self.tester.my_method()
        ###

Metadata

Release files for nrevah-tstcls 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nrevah-tstcls 1.0.1
File Size Uploaded Provenance
nrevah_tstcls-1.0.1.tar.gz 1.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for nrevah-tstcls 1.0.1
File Interpreter ABI Platform
nrevah_tstcls-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 3.6 kB

Release files / nrevah_tstcls-1.0.1.tar.gz

Download URL nrevah_tstcls-1.0.1.tar.gz
Size 1.6 kB
Tags Source
SHA-256 checksum
How to use checksums
efc22583ce9d12f90735432ec18bca68aec7ee7a2dc4c74a863b6e5025559594
BLAKE2b-256 checksum
How to use checksums
5ef9a109291ce144d27fbc29afe94d969c11ece8989e7803ea444f9b60638da3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 4, 2026.

Transparency log

Release files / nrevah_tstcls-1.0.1-py3-none-any.whl

Download URL nrevah_tstcls-1.0.1-py3-none-any.whl
Size 2.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f8d69ee0f48afcf920eea42b0cefcaa63fc85a6c6cd9487933cdbbe1ddc35ac
BLAKE2b-256 checksum
How to use checksums
aa297bd0fe4a9d40d527bd2a337b441921a6e64e8b2ca3f593f5dab416ebfe02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 4, 2026.

Transparency log

Security for nrevah-tstcls 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nrevah_tstcls-1.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page