Skip to content

Commit 2b66bbb

Browse files
author
brentru
committed
adding in dummy account and unit testing for travis
1 parent 439442d commit 2b66bbb

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ python:
99
cache:
1010
pip: true
1111

12+
before_install:
13+
#pip install -r requirements.txt
14+
1215
install:
1316
- pip install pylint Sphinx sphinx-rtd-theme
17+
- pip install .
1418

1519
script:
16-
# test adafruit_io_basics examples
17-
- pylint --disable=missing-docstring,invalid-name examples/aio_basics/*.py
18-
# test API examples
19-
pylint --disable=missing-docstring,invalid-name examples/api/*.py
20-
# test MQTT examples
21-
pylint --disable=missing-docstring,invalid-name examples/aio_basics/*.py
22-
# finally, let's build the docs
20+
# run /tests/
21+
- python -m unittest discover
22+
# build library docs
2323
- cd docs && sphinx-build -E -W -b html . _build/html

tests/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_test_key(self):
2828
"""Return the AIO key specified in the ADAFRUIT_IO_KEY environment
2929
variable, or raise an exception if it doesn't exist.
3030
"""
31-
key = os.environ.get('ADAFRUIT_IO_KEY', None)
31+
key = '68163f6f6ee24475b5edb0ed1f77f80a'
3232
if key is None:
3333
raise RuntimeError("ADAFRUIT_IO_KEY environment variable must be " \
3434
"set with valid Adafruit IO key to run this test!")
@@ -38,7 +38,7 @@ def get_test_username(self):
3838
"""Return the AIO username specified in the ADAFRUIT_IO_USERNAME
3939
environment variable, or raise an exception if it doesn't exist.
4040
"""
41-
username = os.environ.get('ADAFRUIT_IO_USERNAME', None)
41+
username = 'travisiotester'
4242
if username is None:
4343
raise RuntimeError("ADAFRUIT_IO_USERNAME environment variable must be " \
4444
"set with valid Adafruit IO username to run this test!")

0 commit comments

Comments
 (0)