Skip to content

Commit

Permalink
Improving instructions for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
satanas committed Nov 7, 2019
1 parent 7780edf commit be9fdf4
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Distribution / packaging
.Python
env/
venv/
build/
develop-eggs/
dist/
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,22 @@ $ serverless deploy
$ curl -X POST https://<your_url>.amazonaws.com/dev/set_webhook
```

## Testing locally

Make sure you use pip and all tools for Python 3, then install all dependencies:

```
$ pip3 install virtualenv
$ virtualenv venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt
```

And finally, run the tests:
```
$ nose2 -v
```

## Notes
AWS credentials saved on your machine at ~/.aws/credentials.
1 change: 0 additions & 1 deletion character.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def handler(bot, update):
response = get_weapons(text,db)
elif text.startswith('/talk'):
response = talk(text)
print('talk response', response)
else:
response = "Invalid command"

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
python-telegram-bot==8.1.1
requests==2.20.0
python-firebase==1.2
nose2==0.9.1
File renamed without changes.
File renamed without changes.

0 comments on commit be9fdf4

Please sign in to comment.