Beispiel #1
0
    def test_compile__should_compile_files(self):
        path = self.filepath()
        package = pdefc.compile(path)

        file = package.files[0]
        assert file.dotname == "test"
        assert file.path == "test.pdef"
        assert len(file.types) == 5
Beispiel #2
0
Datei: test.py Projekt: pdef/pdef
 def package(self):
     path = os.path.join(os.path.dirname(__file__), 'test.pdef')
     return pdefc.compile(path)
Beispiel #3
0
 def test_compile__should_compile_package(self):
     path = self.filepath()
     package = pdefc.compile(path)
     assert package
     assert len(package.files) == 1