Skip to content

Commit

Permalink
updating unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
seg1129 committed Nov 7, 2017
1 parent 5aef5ea commit fb176e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ehb_datasources/tests/unit_tests/test_form_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ def test_construct_form(form_builder, redcap_metadata_json, redcap_record_json):
)
assert '0GUQDBCDE0EAWN9Q:8LAG76CHO' not in form
assert '<div><input class="field_input" type="checkbox" name="meds___1" value="1" style="margin-top:-1px" checked="checked"/> Antibiotic</div>' in form
assert '<input style="min-width: 100px;" type="text" value="100" name="height" class="field_input" id="input_height" />' in form
assert 'input style="min-width: 100px;" type="text" value="20" name="weight" class="field_input" id="input_weight" />' in form
assert '<input type="text" value="100" name="height" class="field_input" id="input_height" />' in form
assert '<input type="text" value="20" name="weight" class="field_input" id="input_weight" />' in form
assert '<textarea rows="5" cols="20" name="comments" class="field_input" >Test Data2</textarea>' in form

def test_construct_form2_branch_logic_functions(form_builder, redcap_metadata_json2, redcap_record_json2):
form = form_builder.construct_form(
json.loads(redcap_metadata_json2.decode('utf-8')),
Expand Down

0 comments on commit fb176e5

Please sign in to comment.