Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
ilanschnell committed Feb 14, 2016
1 parent 633f1e4 commit efcd26c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions tests/test-recipes/metadata/extra_freeform_metadata/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ package:
name: conda-build-test-extra-metadata
version: 0.1

test:
requires:
- pyyaml

extra:
custom: metadata
however: {we: want}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import json
import yaml


def main():
Expand All @@ -9,9 +10,10 @@ def main():
with open(info_file, 'r') as fh:
info = json.load(fh)

source_file = os.path.join(info['link']['source'], 'info', 'recipe.json')
source_file = os.path.join(info['link']['source'],
'info', 'recipe', 'meta.yaml')
with open(source_file, 'r') as fh:
source = json.load(fh)
source = yaml.load(fh)

assert source['extra'] == {"custom": "metadata",
"however": {"we": "want"}}
Expand Down

0 comments on commit efcd26c

Please sign in to comment.