commit
207075b038
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
node_modules
|
node_modules/
|
||||||
.sass-cache/
|
.sass-cache/
|
||||||
static/fonts/*
|
static/fonts/*
|
||||||
.webassets-cache
|
.webassets-cache
|
||||||
scss/assets
|
scss/assets
|
||||||
|
.pytest_cache/
|
||||||
|
5
.travis.yml
Normal file
5
.travis.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
language: python
|
||||||
|
python:
|
||||||
|
- "3.6"
|
||||||
|
script:
|
||||||
|
- python -m pytest
|
12
README.md
12
README.md
@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
# ATST
|
# ATST
|
||||||
|
|
||||||
|
[](https://travis-ci.org/dod-ccpo/atst)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
brew install python3
|
brew install python3
|
||||||
@ -17,6 +19,16 @@ To start the app and watch for changes:
|
|||||||
|
|
||||||
DEBUG=1 ./app.py
|
DEBUG=1 ./app.py
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
|
To run unit tests:
|
||||||
|
|
||||||
|
python -m pytest
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
make test
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
tornado templates are like mustache templates -- add the
|
tornado templates are like mustache templates -- add the
|
||||||
|
2
pytest.ini
Normal file
2
pytest.ini
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[pytest]
|
||||||
|
norecursedirs = .venv .git node_modules
|
@ -1,2 +1,4 @@
|
|||||||
tornado==5.0.2
|
tornado==5.0.2
|
||||||
webassets==0.12.1
|
webassets==0.12.1
|
||||||
|
pytest==3.6.0
|
||||||
|
pytest-tornado==0.5.0
|
||||||
|
12
tests/test_basic.py
Normal file
12
tests/test_basic.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import pytest
|
||||||
|
import tornado.web
|
||||||
|
from app import make_app
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def app():
|
||||||
|
return make_app()
|
||||||
|
|
||||||
|
@pytest.mark.gen_test
|
||||||
|
def test_hello_world(http_client, base_url):
|
||||||
|
response = yield http_client.fetch(base_url)
|
||||||
|
assert response.code == 200
|
Loading…
x
Reference in New Issue
Block a user