Commit 076e9bb0 authored by Roman Yurchak's avatar Roman Yurchak

Address review comments

parent f38e01e4
......@@ -5,3 +5,7 @@ package:
source:
url: https://files.pythonhosted.org/packages/31/60/494fcce70d60a598c32ee00e71542e52e27c978e5f8219fae0d4ac6e2864/kiwisolver-1.0.1.tar.gz
md5: e2a1718b837e2cd001f7c06934616fcd
test:
imports:
- kiwisolver
......@@ -39,3 +39,7 @@ requirements:
- pyparsing
- python-dateutil
- pytz
test:
imports:
- matplotlib
......@@ -20,3 +20,8 @@ source:
build:
cflags: -include math.h -I../../config
test:
imports:
- numpy
......@@ -17,3 +17,7 @@ requirements:
- numpy
- python-dateutil
- pytz
test:
imports:
- pandas
......@@ -8,3 +8,7 @@ source:
patches:
- patches/dummy_threading.patch
test:
imports:
- pyparsing
......@@ -8,3 +8,7 @@ source:
patches:
- patches/dummy-thread-lock.patch
test:
imports:
- dateutil
......@@ -8,3 +8,7 @@ source:
patches:
- patches/dummy-threading.patch
test:
imports:
- pytz
......@@ -12,19 +12,27 @@ import common # noqa
def registered_packages():
"""Returns a list of registred package names"""
packages = [name for name in os.listdir(PKG_DIR)
if (PKG_DIR / name).is_dir()]
return packages
def registered_packages_meta():
"""Returns a dictionary with the contents of `meta.yaml`
for each registed package
"""
packages = registered_packages
return {name: common.parse_package(PKG_DIR / name / 'meta.yaml')
for name in packages}
@pytest.mark.parametrize('name', registered_packages())
def test_meta(selenium, name):
# check that we can parse the meta.yaml
meta = common.parse_package(PKG_DIR / name / 'meta.yaml')
if 'test' in meta:
if 'imports' in meta['test']:
# check imports
for import_name in meta['test']['imports']:
selenium.load_package(import_name)
selenium.run('import %s' % import_name)
# check imports
for import_name in meta.get('test', {}).get('imports', []):
selenium.load_package(import_name)
selenium.run('import %s' % import_name)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment