예제 #1
0
    def setUp(self):
        self.site = build_test_site()
        self.compiler = Compiler(site=self.site, output_path=os.path.join(TEST_SITE, "output"))

        if HERE not in self.compiler.output_path:
            sys.exit("Something is terribly wrong. {}, {}".format(HERE, self.compiler.output_path))

        if os.path.exists(self.compiler.output_path):
            shutil.rmtree(self.compiler.output_path)
예제 #2
0
파일: test_site.py 프로젝트: veeti/vasara
 def setUp(self):
     self.site = build_test_site()