Closed sierra-moxon closed 1 year ago
looks like the YAML generated as test data is malformated.
test data should look more like this:
entries:
- id: P:001
name: fred bloggs
primary_email: fred.bloggs@example.com
age_in_years: 33
and test_data.py should look more like this:
def test_data(self):
"""Date test."""
for path in EXAMPLE_FILES:
obj = yaml_loader.load(path, target_class=PersonCollection)
assert obj
Note: target_class=PersonCollection
make test
works for me now in a fresh cookiecutter repo now, but it doesn't in my new semantic-synbio/synbio-schema repo: https://github.com/semantic-synbio/synbio-schema/issues/2
I could use some help debugging that. I probably modified or deleted something that I shouldn't have.
Works for me; closing.
Sorry for the long output here; I think the tests should run out of the box, or we should remove that as a step in the template README? I haven't had a chance to debug - will take a look.