Lines Matching refs:self
88 def __init__(self, directory_path: Path): argument
89 self.exp: Experiment
90 self.database = None
91 self.directory_path: Path = directory_path
92 self.original_path: Path
94 def setup(self): argument
96 self.original_path = Path(os.getcwd())
98 if self.directory_path.exists() and self.directory_path.is_dir():
99 shutil.rmtree(self.directory_path)
100 self.directory_path.mkdir()
101 os.chdir(self.directory_path)
104 self.exp = Experiment("test", launcher="local")
105 self.database = self.exp.create_database(port=PORT, batch=False, interface="lo")
106 self.exp.generate(self.database)
107 self.exp.start(self.database)
113 def test(self, ceed_resource) -> Tuple[bool, Exception, str]: argument
138 … client_exp = self.exp.create_model(f"client_{ceed_resource.replace('/', '_')}", run_settings)
141 self.exp.start(client_exp, summary=False, block=True)
143 client = Client(cluster=False, address=self.database.get_address()[0])
196 def test_junit(self, ceed_resource): argument
199 passTest, exception, args = self.test(ceed_resource)
220 def teardown(self): argument
221 self.exp.stop(self.database)
222 os.chdir(self.original_path)