Пример #1
0
    def write(self):
        """Populate and write the test files. """
        if self.language=="f90":
            render_fortran.Model2Package(self.models, self.dir).write_tests()

        if self.language=="py":
            render_cyml.Model2Package(self.models, self.dir).write_tests()
Пример #2
0
def generate_test_f90(model, dir):
    return [render_fortran.Model2Package(model, dir).generate_test(model)]