From b89cb298d398dc423d40299584da35dedce69a2d Mon Sep 17 00:00:00 2001 From: jaketothepast Date: Sat, 26 Jan 2019 07:54:31 -0500 Subject: [PATCH] Including Python test suite for proxy --- .gitignore | 1 + README.md | 6 ++++++ test/requirements.txt | 2 ++ test/test_proxy.py | 0 4 files changed, 9 insertions(+) create mode 100644 test/requirements.txt create mode 100644 test/test_proxy.py diff --git a/.gitignore b/.gitignore index c2658d7..1bbdda9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules/ +test/proxy_test/ \ No newline at end of file diff --git a/README.md b/README.md index a92b866..cb83afc 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,12 @@ So in reality, it will be a tool to help monitor your internet usage and block y To test, can either spin up the vagrant instance, or utilize the unit tests. +# Testing Locally + +The directory `./test` includes Python based tests intended to stress the proxy. +To run them, install the requirements with Pip, then run +`python3 test_proxy.py` + # TODO 1. Setup a server that listens on a port diff --git a/test/requirements.txt b/test/requirements.txt new file mode 100644 index 0000000..2001f3e --- /dev/null +++ b/test/requirements.txt @@ -0,0 +1,2 @@ +requests +pytest diff --git a/test/test_proxy.py b/test/test_proxy.py new file mode 100644 index 0000000..e69de29