Skip to content

Commit

Permalink
Move tests into package.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceball committed Sep 10, 2020
1 parent eb0474e commit 506065c
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .appveyor-cron.yml
Expand Up @@ -12,5 +12,5 @@ install:
build: off

test_script:
# TODO update to run test suite when tests are in nbsmoke package
- python -c "import nbsmoke"
- cd %TMP%
- pytest -v --pyargs nbsmoke
6 changes: 3 additions & 3 deletions .travis.yml
Expand Up @@ -57,7 +57,7 @@ jobs:
- stage: test_latest_release
python: 3.7
install:
- pip install nbsmoke
- tmp_dir=$(mktemp -d)
- cd $tmp_dir && pip install nbsmoke
script:
# TODO: when pytest's tests are in the package, run the tests!
- python -c "import nbsmoke"
- cd $tmp_dir && pytest -v --pyargs nbsmoke
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 6 additions & 3 deletions tox.ini
Expand Up @@ -4,7 +4,7 @@ envlist = py36,py37,py38,pypy,flake8,dev
# TODO: shouldn't be extras=all in every case.

[testenv]
commands = py.test -v {posargs:tests}
commands = py.test
extras = all

[testenv:coverage]
Expand All @@ -23,9 +23,12 @@ deps = coveralls
skip_install = true
deps = flake8
extras = all
commands = flake8 -v nbsmoke setup.py tests
commands = flake8 -v nbsmoke setup.py

[testenv:dev]
usedevelop = true
extras = all
commands = py.test -v {posargs:tests}
commands = py.test

[pytest]
addopts = -v --pyargs

0 comments on commit 506065c

Please sign in to comment.