Skip to content

Commit

Permalink
Make new tests actually run
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Spelchak committed Feb 12, 2018
1 parent 62945e7 commit 3d1cd3d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -809,9 +809,12 @@ def test_parse_valid_yml(self, l):
self.assertTrue(dt.parse_yaml(yt.vYMLTest6, job_conf_path=job_conf_path, test=True, return_bool=True))
self.assertEqual(dt.parse_yaml(yt.vYMLTest6, job_conf_path=job_conf_path, test=True), yt.vdictTest6_yml)
self.assertTrue(dt.parse_yaml(yt.vYMLTest7, job_conf_path=job_conf_path, test=True, return_bool=True))
self.assertEqual(dt.parse_yaml(yt.vYMLTest7, job_conf_path=job_conf_path, test=True), yt.vdictTest7_yml)
self.assertTrue(dt.parse_yaml(yt.vYMLTest160, job_conf_path=job_conf_path, test=True, return_bool=True))
self.assertEqual(dt.parse_yaml(yt.vYMLTest160, job_conf_path=job_conf_path, test=True), yt.vdictTest160_yml)
self.assertTrue(dt.parse_yaml(yt.vYMLTest164, job_conf_path=job_conf_path, test=True, return_bool=True))
self.assertEqual(dt.parse_yaml(yt.vYMLTest7, job_conf_path=job_conf_path, test=True), yt.vdictTest7_yml)
self.assertEqual(dt.parse_yaml(yt.vYMLTest164, job_conf_path=job_conf_path, test=True), yt.vdictTest164_yml)

l.check(
('galaxy.jobs.dynamic_tool_destination', 'DEBUG', 'Running config validation...'),
('galaxy.jobs.dynamic_tool_destination', 'DEBUG', 'Finished config validation.'),
Expand All @@ -829,6 +832,10 @@ def test_parse_valid_yml(self, l):
('galaxy.jobs.dynamic_tool_destination', 'DEBUG', 'Running config validation...'),
('galaxy.jobs.dynamic_tool_destination', 'DEBUG', "No default_priority section found in config. Setting 'med' as default priority."),
('galaxy.jobs.dynamic_tool_destination', 'DEBUG', 'Finished config validation.'),
('galaxy.jobs.dynamic_tool_destination', 'DEBUG', 'Running config validation...'),
('galaxy.jobs.dynamic_tool_destination', 'DEBUG', 'Finished config validation.'),
('galaxy.jobs.dynamic_tool_destination', 'DEBUG', 'Running config validation...'),
('galaxy.jobs.dynamic_tool_destination', 'DEBUG', 'Finished config validation.')
)

# ================================Testing str_to_bytes==========================
Expand Down
11 changes: 5 additions & 6 deletions test/unit/jobs/dynamic_tool_destination/ymltests.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,15 +312,14 @@
}
},
'default_destination': 'waffles_low',
'default_priority': 'med'
}

# No valid priorities but the tool doesn't require one
vYMLTest164 = '''
default_destination:
priority:
good: waffles_low
fast: waffles_high
good: Destination1_med
fast: Destination1_high
default_priority: good
tools:
blah:
Expand Down Expand Up @@ -365,11 +364,11 @@
},
'default_destination': {
"priority": {
"good": "cluster_med_4",
"fast": "waffles_high"
"good": "Destination1_med",
"fast": "Destination1_high"
}
},
'default_priority': 'med'
'default_priority': 'good'
}

# =====================================================Invalid XML tests==========================================================
Expand Down

0 comments on commit 3d1cd3d

Please sign in to comment.