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

Address review comments

parent f38e01e4
...@@ -5,3 +5,7 @@ package: ...@@ -5,3 +5,7 @@ package:
source: source:
url: https://files.pythonhosted.org/packages/31/60/494fcce70d60a598c32ee00e71542e52e27c978e5f8219fae0d4ac6e2864/kiwisolver-1.0.1.tar.gz url: https://files.pythonhosted.org/packages/31/60/494fcce70d60a598c32ee00e71542e52e27c978e5f8219fae0d4ac6e2864/kiwisolver-1.0.1.tar.gz
md5: e2a1718b837e2cd001f7c06934616fcd md5: e2a1718b837e2cd001f7c06934616fcd
test:
imports:
- kiwisolver
...@@ -39,3 +39,7 @@ requirements: ...@@ -39,3 +39,7 @@ requirements:
- pyparsing - pyparsing
- python-dateutil - python-dateutil
- pytz - pytz
test:
imports:
- matplotlib
...@@ -20,3 +20,8 @@ source: ...@@ -20,3 +20,8 @@ source:
build: build:
cflags: -include math.h -I../../config cflags: -include math.h -I../../config
test:
imports:
- numpy
...@@ -17,3 +17,7 @@ requirements: ...@@ -17,3 +17,7 @@ requirements:
- numpy - numpy
- python-dateutil - python-dateutil
- pytz - pytz
test:
imports:
- pandas
...@@ -8,3 +8,7 @@ source: ...@@ -8,3 +8,7 @@ source:
patches: patches:
- patches/dummy_threading.patch - patches/dummy_threading.patch
test:
imports:
- pyparsing
...@@ -8,3 +8,7 @@ source: ...@@ -8,3 +8,7 @@ source:
patches: patches:
- patches/dummy-thread-lock.patch - patches/dummy-thread-lock.patch
test:
imports:
- dateutil
...@@ -8,3 +8,7 @@ source: ...@@ -8,3 +8,7 @@ source:
patches: patches:
- patches/dummy-threading.patch - patches/dummy-threading.patch
test:
imports:
- pytz
...@@ -12,19 +12,27 @@ import common # noqa ...@@ -12,19 +12,27 @@ import common # noqa
def registered_packages(): def registered_packages():
"""Returns a list of registred package names"""
packages = [name for name in os.listdir(PKG_DIR) packages = [name for name in os.listdir(PKG_DIR)
if (PKG_DIR / name).is_dir()] if (PKG_DIR / name).is_dir()]
return packages 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()) @pytest.mark.parametrize('name', registered_packages())
def test_meta(selenium, name): def test_meta(selenium, name):
# check that we can parse the meta.yaml # check that we can parse the meta.yaml
meta = common.parse_package(PKG_DIR / name / 'meta.yaml') meta = common.parse_package(PKG_DIR / name / 'meta.yaml')
if 'test' in meta: # check imports
if 'imports' in meta['test']: for import_name in meta.get('test', {}).get('imports', []):
# check imports selenium.load_package(import_name)
for import_name in meta['test']['imports']: selenium.run('import %s' % import_name)
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