Skip to content

Commit

Permalink
Merge pull request #55 from tacaswell/fix_build_install_tests
Browse files Browse the repository at this point in the history
Fix build install tests
  • Loading branch information
Eric Dill committed Apr 15, 2015
2 parents d51c8ee + 776197e commit 9ccc230
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ requirements:
test:
imports:
- vttools
- vttools.tests

about:
license: 3-Clause BSD
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
packages=["vttools",
'vttools.vtmods',
'vttools.vtmods.import_lists',
'vttools.to_wrap'
'vttools.to_wrap',
'vttools.tests'
],
package_data = {'vttools.vtmods.import_lists': ['*.yaml']}
package_data={'vttools.vtmods.import_lists': ['*.yaml']}
)
1 change: 1 addition & 0 deletions vttools/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

7 changes: 5 additions & 2 deletions vttools/tests/test_scape.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
from numpy.testing import assert_string_equal, assert_equal, assert_raises
from nose.tools import assert_true

from scrape_test_source import eat_porridge, porridge_for_the_bears, has_defaults
from vttools.tests.scrape_test_source import (
eat_porridge, porridge_for_the_bears, has_defaults)


def test_scrape():
Expand Down Expand Up @@ -351,7 +352,9 @@ def test_module_scrape():
({'exclude_private': False}, {}, ['_private']))

for pre, post, tst_lst in tests:
yield _mod_scrape_test_helper, 'scrape_test_source', pre, post, tst_lst
yield (_mod_scrape_test_helper,
'vttools.tests.scrape_test_source',
pre, post, tst_lst)


def _mod_scrape_test_helper(mod_name, kwargs_with, kwargs_without,
Expand Down

0 comments on commit 9ccc230

Please sign in to comment.