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)
def setUp(self): self.site = build_test_site()