Skip to main content

Stupidly-simple python mocking utility with moxie.

Project description

mocksey

Stupidly-simple python mocking utility with moxie.

BuildImage

Latest PyPI version Number of PyPI downloads

Mocksey Motivation

I was teaching a class on unit testing to a group of co-workers who were familiar with Simple Test for PHP so I hacked together what is becoming Mocksey.

Mocksey the TDD’d version of that TDD utilty. It’s so meta even this acronym.

Installation

Either find mocksey on PyPI or install it with pip or easy_install

pip install mocksey
#or
easy_install mocksey

Basic Usage

It’s pretty simple. Create a mocked object with generate_mock, inject it (or monkey patch) and set up your assertions. After your function call(s), simply call ‘run_asserts’ and win!

The unit tests are a pretty decent working example.

License

This software is hereby released under the MIT License, as seen in the LICENSE file

Project details


Download files

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

Source Distribution

mocksey-0.1.5.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file mocksey-0.1.5.tar.gz.

File metadata

  • Download URL: mocksey-0.1.5.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mocksey-0.1.5.tar.gz
Algorithm Hash digest
SHA256 0e4f0cfa77276c14a5c3bdcf51b96c4be3449a7021f5da50878a52295f033c21
MD5 6888cfa5b1f6536b8effafbb75bfd149
BLAKE2b-256 709d69422c778ea29acb13fff193179e121af0d0f109c8e5ab85019531994578

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page