Metadata-Version: 2.1
Name: pytest-tstcls
Version: 2020.1.1
Summary: Test Class Base
Home-page: https://github.com/singular-labs/tstcls
Author: Singular Labs, Inc
Author-email: devs@singular.net
License: MIT License
Description: # pytest-tstcls
        Test Class Base
        
        ## How to use
        ### Simple Tests
        ```python
        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
        ```python
        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
        ```python
        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()
                ###
        ```
        
Keywords: pytest,test,class,base
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Provides: tstcls
Requires-Python: >=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
Description-Content-Type: text/markdown
