From: Diane Trout Date: Thu, 15 Sep 2016 00:02:51 +0000 (-0700) Subject: Fix test case looking for library id X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=df811e1358ae71d696dfb266d9ee38fe9a61e9b9 Fix test case looking for library id Looking at the text for the strong node didn't work when the actual html was text --- diff --git a/experiments/test_experiments.py b/experiments/test_experiments.py index 7ba61dc..9dc1933 100644 --- a/experiments/test_experiments.py +++ b/experiments/test_experiments.py @@ -206,7 +206,7 @@ class ExperimentsTestCases(TestCase): for i in range(0, 8): xpath_expression = '//input[@id="id_lane_set-%d-library"]' input_field = tree.xpath(xpath_expression % (i,))[0] - library_field = input_field.find('../strong') + library_field = input_field.find('../strong/a') library_id, library_name = library_field.text.split(':') # strip leading '#' sign from name library_id = library_id[1:]