Skip to content

Latest commit

 

History

History
executable file
·
3 lines (2 loc) · 703 Bytes

File metadata and controls

executable file
·
3 lines (2 loc) · 703 Bytes

Testing Documentation

We are currently using pytest as our testing framework so if you want to run the test suite. Run pytest from the base directory of TorBot or from the tests directory. We're using mock objects to simulate HTTP requests and HTML webpages using mock_requests and yattag which allows us to have much faster tests that don't rely on network connections. In order to create test using these mocks, the general pattern is to create some HTML using yattag and registering the data to a URL using requests_mock which will be used to simulate HTTP requests.