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.

Filename, size & hash SHA256 hash help File type Python version Upload date
karellen_testing-0.0.1.dev20161012185112-py3-none-any.whl (6.2 kB) Copy SHA256 hash SHA256 Wheel 3.5 Oct 12, 2016
karellen-testing-0.0.1.dev20161012185112.tar.gz (4.1 kB) Copy SHA256 hash SHA256 Source None Oct 12, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page