def _write_file(self, path, config, template):
     outfile = open(path, 'w') \
         if isinstance(path, basestring) else path  # unit test hook
     with outfile:
         model_writer = RobotModelWriter(outfile, self._js_model, config)
         writer = HtmlFileWriter(outfile, model_writer)
         writer.write(template)
 def _write_file(self, path, config, template):
     outfile = open(path, 'w') \
         if isinstance(path, basestring) else path  # unit test hook
     with outfile:
         model_writer = RobotModelWriter(outfile, self._js_model, config)
         writer = HtmlFileWriter(outfile, model_writer)
         writer.write(template)
 def _write_file(self, path, config, template):
     outfile = file_writer(path) \
         if is_string(path) else path  # unit test hook
     with outfile:
         model_writer = RobotModelWriter(outfile, self._js_model, config)
         writer = HtmlFileWriter(outfile, model_writer)
         writer.write(template)
Example #4
0
 def _write_file(self, path, config, template):
     outfile = file_writer(path) \
         if is_string(path) else path  # unit test hook
     with outfile:
         model_writer = RobotModelWriter(outfile, self._js_model, config)
         writer = HtmlFileWriter(outfile, model_writer)
         writer.write(template)
Example #5
0
 def _write_test_doc(self, suite, outfile, title):
     with file_writer(outfile, usage='Testdoc output') as output:
         model_writer = TestdocModelWriter(output, suite, title)
         HtmlFileWriter(output, model_writer).write(TESTDOC)
Example #6
0
 def _write_test_doc(self, suite, outfile, title):
     with open(outfile, 'w') as output:
         model_writer = TestdocModelWriter(output, suite, title)
         HtmlFileWriter(output, model_writer).write(TESTDOC)
 def _write_test_doc(self, suite, outfile, title):
     output = codecs.open(outfile, 'w', 'UTF-8')
     model_writer = TestdocModelWriter(output, suite, title)
     HtmlFileWriter(output, model_writer).write(TESTDOC)
     output.close()
Example #8
0
 def write(self, libdoc, output):
     model_writer = LibdocModelWriter(output, libdoc)
     HtmlFileWriter(output, model_writer).write(LIBDOC)