Closed neil-unomaha closed 4 years ago
@Jacksonurrutia within your running docker container, go to /usr/local/lib/python3.6/site-packages/verbose_robot-4.0.1-py3.6.egg/test/httpd
pytest
You can add additional test functions in that file. Then: running pytest
will pick them up:
def test_palo(client):
print("This print statement only shows when this test fails")
print("This test fails, therefore this will show")
assert 'hello world' == 'hello worlds'
9431bb00a28cf4905217a42821e79c6d642f4831
Existing tests within CIF https://github.com/csirtgadgets/verbose-robot/tree/master/test
Testing documentation for Flask https://flask.palletsprojects.com/en/1.1.x/testing/#testing-json-apis
Testing in General in Python3 https://docs.python.org/3/library/unittest.html