예제 #1
0
 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/",
     )
예제 #2
0
 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/",
     )
예제 #3
0
 def setup_method(self):
     self.betka = Betka()
예제 #4
0
파일: tasks.py 프로젝트: sclorg/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()
예제 #5
0
 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()