test_issue_110.py 518 B

1234567891011121314151617
  1. from pylode.common import MakeDocco
  2. def test_issue_110():
  3. output_html_file = "test_issue_110_output.html"
  4. m = MakeDocco(input_data_file="test_issue_110_input.ttl")
  5. m.document(destination=output_html_file)
  6. assert "balance between £1,000 and £1,000,000 GBP" in open(output_html_file).read()
  7. if __name__ == '__main__':
  8. test_issue_110()
  9. print("ok")
  10. # this test works running on BASH command line with with
  11. # `pylode -i test_issue_110_input.ttl -c true -o test_issue_110_output.html`