/sample_oauth_alexa_skill_kit

sample_oauth_alexa_skill_kit

Primary LanguagePython

Setup

Install pip. Then:

pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

Check installation successfully by running following commands are relative to the virtualenv:

which python
which pip

Test

Runs all tests

python -m unittest discover

Runs tests for a specific module

python -m unittest tests.test_utils

Runs tests a specific class

python -m unittest tests.test_utils.TestUtils

Runs one specific test

python -m unittest tests.test_utils.TestUtils.test_flatten

Lambda Execution & Deploy

Copy config.sample.yaml file to cofig.yaml

$ cp config.sample.yaml cofig.yaml 

Execute lambda function

$ lambda invoke -v

Deploy lambda function

$ lambda deploy