-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support (python lib, docker-compose config) to enable server testing Related: #110
- Loading branch information
1 parent
41218bd
commit a92a5cb
Showing
5 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ urllib3==1.23 | |
Werkzeug==0.14.1 | ||
mypy==0.720 | ||
mypy-extensions==0.4.1 | ||
pytest==5.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import pytest | ||
from server import app | ||
|
||
def test_empty(): | ||
return True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: '3' | ||
|
||
services: | ||
db: | ||
image: mongo | ||
command: [--auth] | ||
environment: | ||
MONGO_INITDB_ROOT_USERNAME: admin | ||
MONGO_INITDB_ROOT_PASSWORD: password | ||
MONGO_INITDB_DATABASE: expo-testing | ||
ports: | ||
- "27017:27017" | ||
test: | ||
build: | ||
context: ./api | ||
volumes: | ||
- .:/var/www/webapps/hackathon-expo-app/api | ||
depends_on: | ||
- db | ||
ports: | ||
- "8000:8000" | ||
links: | ||
- db:db | ||
command: pytest |