Skip to content

mindflayer/mocketoy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mocketoy

Client-Server Toy initially designed for our talk at Europython 2013

  • Morpheus is your real server, that's exactly what we want to mock;
  • Neo is your client, basically what we want to test.

Mocket shows its power in the tests file, where you can see the first test using the real server, and a couple of tests using mocketize decorator.

Quick Start

# Install Dependencies to a local .venv/
python -m pip install -r requirements.txt

# In separate shells, run the server and the client:
python morpheus.py
python neo.py

# One test expects the server (morpheus.py) to be running, while the other two tests demonstrate mocking
python morpheus.py
python -m unittest tests.py

About

Client-Server Toy for Europython 2013 Talk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages