https://github.com/mindflayer/mocketoy
Client-Server Toy for Europython 2013 Talk
https://github.com/mindflayer/mocketoy
Last synced: about 1 year ago
JSON representation
Client-Server Toy for Europython 2013 Talk
- Host: GitHub
- URL: https://github.com/mindflayer/mocketoy
- Owner: mindflayer
- Created: 2013-07-01T11:04:07.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2020-11-04T09:30:05.000Z (over 5 years ago)
- Last Synced: 2025-02-17T01:43:55.132Z (over 1 year ago)
- Language: Python
- Size: 9.77 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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
```sh
# 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
```