Skip to content

Conversation

@bencvdb
Copy link
Contributor

@bencvdb bencvdb commented Aug 14, 2018

This PR would add a function, and corresponding unit tests, for determining the version of a CWL, WDL or python-based workflow.

Copy link
Collaborator

@DailyDreaming DailyDreaming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good to me, just a few comments.

This test is run only on local files to avoid downloading and removing a new file.
"""

for format, location in self.local.items():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use the word format. format is a python builtin.

import sys

from wes_client.util import expand_globs
pkg_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) # noqa
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put this (lines 9 & 10) into the other test file as well.

self.assertEquals(wf_info(location[7:]), self.expected[format])

else:
# Tests behavior after recieveing a non supported file type.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recieveing

@DailyDreaming
Copy link
Collaborator

LGTM.

@DailyDreaming DailyDreaming merged commit e20fda0 into common-workflow-language:master Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants