From 8e1040b51addeee50769997b4b737ff8afe4c258 Mon Sep 17 00:00:00 2001 From: Russell Hay Date: Fri, 2 Sep 2016 15:47:46 -0700 Subject: [PATCH 1/2] Add automated test runs via travis (#8) --- .travis.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..656e169f7 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +language: python +python: + - "2.7" + - "3.3" + - "3.4" + - "3.5" + - "pypy" +# command to install dependencies +install: + - "pip install -e ." + # - "pip install pep8" +# command to run tests +script: + # Tests + - python setup.py test + # pep8 - disabled for now until we can scrub the files to make sure we pass before turning it on + # - pep8 . From 34595b987db1846f0e4fd5bf8f49942d23c121a7 Mon Sep 17 00:00:00 2001 From: shinchris Date: Tue, 6 Sep 2016 15:18:19 -0700 Subject: [PATCH 2/2] moved request-mock library to tests_require --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index fe3a993db..77e781f41 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,9 @@ description='A Python module for working with the Tableau Server REST API.', test_suite='test', install_requires=[ - 'requests>=2.11,<2.12.0a0', + 'requests>=2.11,<2.12.0a0' + ], + tests_require=[ 'requests-mock>=1.0,<1.1a0' ] ) \ No newline at end of file