mock-ssh-server
time-machine
mock-ssh-server | time-machine | |
---|---|---|
1 | 2 | |
55 | 606 | |
- | - | |
4.2 | 8.6 | |
11 months ago | 6 days ago | |
Python | Python | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mock-ssh-server
-
How test a SSH Paramiko connection?
I've found mockSSH, but I can't use password to authenticate, which is required, and it's not working for me either.
time-machine
-
About time: how to unit test code that depends on time
Freezegun is pretty much unmaintained. You want time-machine https://github.com/adamchainz/time-machine
-
Running C unit tests with pytest
There are lots of good mocking fixtures available for pytest. I've used this one for clock stuff in the past: https://github.com/adamchainz/time-machine#pytest-plugin
What are some alternatives?
freezegun - Let your Python tests travel through time
doublex
mock - The Python mock library
betamax - A VCR imitation designed only for python-requests.
httpretty - Intercept HTTP requests at the Python socket level. Fakes the whole socket module
responses - A utility for mocking out the Python Requests library.
VCR.py - Automatically mock your HTTP interactions to simplify and speed up testing
Moto - A library that allows you to easily mock out tests based on AWS infrastructure.
pymox - Pymox - Python mocking on steroids
httmock - A mocking library for requests
Mocket - a socket mock framework - for all kinds of socket animals, web-clients included
Mock Generator - A tool to auto generate the basic mocks and asserts for faster unit testing