From 525c6adce3486eed20e38ecec42d7e5877bf94ed Mon Sep 17 00:00:00 2001 From: RackReaver Date: Thu, 18 Apr 2019 11:15:16 -0400 Subject: [PATCH 1/5] updated requirements.txt --- requirements.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/requirements.txt b/requirements.txt index 3d1296c..642bc64 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,13 +1,23 @@ +atomicwrites==1.3.0 +attrs==19.1.0 autopep8==1.4.3 beautifulsoup4==4.7.1 bs4==0.0.1 certifi==2018.11.29 chardet==3.0.4 +colorama==0.4.1 idna==2.8 +more-itertools==7.0.0 +pluggy==0.9.0 +py==1.8.0 pycodestyle==2.5.0 +pyodbc==4.0.26 pytest==4.3.0 requests==2.21.0 selenium==3.141.0 +six==1.12.0 soupsieve==1.8 +tqdm==4.31.1 urllib3==1.24.1 +versioneer==0.18 webencodings==0.5.1 From e05f9742ef8fa5bd418797f4a2fbad9af422c7c8 Mon Sep 17 00:00:00 2001 From: RackReaver Date: Thu, 18 Apr 2019 11:32:56 -0400 Subject: [PATCH 2/5] Removed unused packages. --- requirements.txt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/requirements.txt b/requirements.txt index 642bc64..e6d069c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ attrs==19.1.0 autopep8==1.4.3 beautifulsoup4==4.7.1 bs4==0.0.1 -certifi==2018.11.29 +certifi==2019.3.9 chardet==3.0.4 colorama==0.4.1 idna==2.8 @@ -11,13 +11,10 @@ more-itertools==7.0.0 pluggy==0.9.0 py==1.8.0 pycodestyle==2.5.0 -pyodbc==4.0.26 pytest==4.3.0 requests==2.21.0 selenium==3.141.0 six==1.12.0 -soupsieve==1.8 -tqdm==4.31.1 -urllib3==1.24.1 +soupsieve==1.9.1 +urllib3==1.24.2 versioneer==0.18 -webencodings==0.5.1 From 39969425e97af8f11b6964107966864574db5422 Mon Sep 17 00:00:00 2001 From: RackReaver Date: Thu, 18 Apr 2019 11:39:51 -0400 Subject: [PATCH 3/5] Commented out test section in travis yml. --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 33d87ed..7d64a3b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,9 +7,9 @@ python: install: - pip install -r requirements.txt -# Run tests -script: - - pytest +# # Run tests +# script: +# - pytest deploy: provider: pypi From 494269d6371463c8070fd053ad56cf2b002f8a51 Mon Sep 17 00:00:00 2001 From: RackReaver Date: Thu, 18 Apr 2019 11:54:24 -0400 Subject: [PATCH 4/5] uncommented test because travis would not run. --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7d64a3b..33d87ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,9 +7,9 @@ python: install: - pip install -r requirements.txt -# # Run tests -# script: -# - pytest +# Run tests +script: + - pytest deploy: provider: pypi From 41ecf51150a529224be0413a99d6cbfa143dcad9 Mon Sep 17 00:00:00 2001 From: RackReaver Date: Thu, 18 Apr 2019 11:54:57 -0400 Subject: [PATCH 5/5] Wrote test for Client class init function. --- tests/__init__.py | 0 tests/test_remedy_tools.py | 10 ++++++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/__init__.py create mode 100644 tests/test_remedy_tools.py diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_remedy_tools.py b/tests/test_remedy_tools.py new file mode 100644 index 0000000..9be397c --- /dev/null +++ b/tests/test_remedy_tools.py @@ -0,0 +1,10 @@ +import pytest + +import remedy_tools + + +def test_Client_init(): + test_client = remedy_tools.Client( + 'http://test.com', 'C:/Users/admin/chromedriver.exe') + assert test_client.link == 'http://test.com' + assert test_client.driver == 'C:/Users/admin/chromedriver.exe'