Skip to main content

Karellen Testing Frameworks and Utilities

Project description

Karellen Testing Frameworks and Utilities

This project aggregates testing frameworks and utilities for all of the projects under Karellen umbrella.

Mock

A collection of Mock utilities helping with common tasks

Spy

from unittest import TestCase
from karellen.testing.mock import MagicSpy


class Class_A(object):
    def method_X(self):
        self.method_Y()

    def method_Y(self):
        pass


class TestSpy(TestCase):
    def test_class_a_api(self):
        mock = MagicSpy(Class_A())

        mock.method_X()
        mock.method_Y.assert_called_once_with()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for karellen-testing, version 0.0.1.dev20161012185112
Filename, size File type Python version Upload date Hashes
Filename, size karellen_testing-0.0.1.dev20161012185112-py3-none-any.whl (6.2 kB) File type Wheel Python version 3.5 Upload date Hashes View
Filename, size karellen-testing-0.0.1.dev20161012185112.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page