def setup_method(self): self.betka = Betka(task_name="task.betka.master_sync") self.config_json = config_json() self.betka.set_config() self.tmpdir = TemporaryDirectory() self.upstream_repo = Path(self.tmpdir.name) / "upstream" self.downstream_repo = Path(self.tmpdir.name) / "downstream" assert self._run_cmd( f"./setup_upstream_downstream.sh " f"{self.upstream_repo} {self.downstream_repo}", Path(__file__).parent / "src/", )
def setup_method(self): self.github = "aklsdjfh19p3845yrp" self.pagure_user = "******" os.environ["GITHUB_API_TOKEN"] = self.github os.environ["PAGURE_API_TOKEN"] = "testing" os.environ["PAGURE_USER"] = self.pagure_user self.betka = Betka(task_name="task.betka.pr_sync") self.betka.set_config() self.tmpdir = TemporaryDirectory() self.upstream_repo = Path(self.tmpdir.name) / "upstream" self.downstream_repo = Path(self.tmpdir.name) / "downstream" assert self._run_cmd( f"./setup_upstream_downstream.sh " f"{self.upstream_repo} {self.downstream_repo}", Path(__file__).parent / "src/", )
def setup_method(self): self.betka = Betka()
def master_sync(message): betka = Betka(task_name="task.betka.master_sync") if betka.get_master_fedmsg_info(message) and betka.prepare(): betka.run_sync()
def setup_method(self): os.environ["GITHUB_API_TOKEN"] = "aklsdjfh19p3845yrp" os.environ["PAGURE_API_TOKEN"] = "testing" os.environ["PAGURE_USER"] = "******" self.betka = Betka() self.betka.config_json = config_json()