Example #1
0
datatype_fp = os.path.join(TEST_DATA_DIR, "training_datatypes.yaml")
tuto_fp = os.path.join(TEST_DATA_DIR, "training_tutorial.md")
tuto_wo_zenodo_fp = os.path.join(TEST_DATA_DIR,
                                 "training_tutorial_wo_zenodo.md")
zenodo_link = 'https://zenodo.org/record/1321885'
# load a workflow generated from Galaxy
WF_FP = os.path.join(TEST_DATA_DIR, "training_workflow.ga")
with open(WF_FP, "r") as wf_f:
    wf = json.load(wf_f)
# load wf_param_values (output of tutorial.get_wf_param_values on wf['steps']['4'])
with open(os.path.join(TEST_DATA_DIR, "training_wf_param_values.json"),
          "r") as wf_param_values_f:
    wf_param_values = json.load(wf_param_values_f)
# configuration
RUNNABLE = for_path(WF_FP)
CTX = cli.Context()
CTX.planemo_directory = "/tmp/planemo-test-workspace"
KWDS = {
    'topic_name': 'my_new_topic',
    'topic_title': "New topic",
    'topic_target': "use",
    'topic_summary': "Topic summary",
    'tutorial_name': "new_tuto",
    'tutorial_title': "Title of tuto",
    'hands_on': True,
    'slides': True,
    'workflow': None,
    'workflow_id': None,
    'zenodo_link': None,
    'datatypes': os.path.join(TEST_DATA_DIR, "training_datatypes.yaml"),
    'templates': None,
Example #2
0
 def test_context(self):
     context = cli.Context()
     context.planemo_directory = "/tmp/planemo-test-workspace"
     return context
Example #3
0
def test_context():
    context = cli.Context()
    context.planemo_directory = "/tmp/planemo-test-workspace"
    context.verbose = run_verbosely()
    return context