Skip to content

Commit

Permalink
add tests in pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
fcurella committed Jun 28, 2018
1 parent 8aee089 commit 7457e2d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions requirements.txt
Expand Up @@ -3,3 +3,6 @@ coveralls==1.3.0
factory-boy==2.11.1
flake8==3.5.0
pypandoc==1.4
pytest
pytest-django
pytest-cov
Empty file.
3 changes: 3 additions & 0 deletions test_project/test_app/tests/test_pytest.py
@@ -0,0 +1,3 @@
def test_something(tp):
response = tp.get('view-200')
assert response.status_code == 200
Expand Up @@ -20,9 +20,9 @@
)
from test_plus.compat import DRF

from .forms import NameForm
from .models import Data
from .views import (
from ..forms import NameForm
from ..models import Data
from ..views import (
CBDataView,
CBTemplateView,
CBView,
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Expand Up @@ -29,6 +29,7 @@ setenv =

commands =
python setup.py test
py.test

[testenv:py27-flake8]
deps =
Expand Down

0 comments on commit 7457e2d

Please sign in to comment.