Skip to main content

Stupidly-simple python mocking utility with moxie.

Project description

mocksey

Stupidly-simple python mocking utility with moxie.

BuildImage

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.

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.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

mocksey-0.1.1.macosx-10.8-intel.exe (66.7 kB view hashes)

Uploaded Source

Supported by

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