refactor: use _get_repo_info

Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
Lars Wirzenius
2024-01-10 17:38:05 +02:00
parent 5336bf8195
commit 161a3635b4
+2 -6
View File
@@ -104,9 +104,7 @@ class Suite:
def test_without_config_env_var(self):
git = self._create_git_repo("no-config")
self._create_valid_native_yaml(git, "echo hello world")
commit = git.head()
self.rad.init(git)
rid = self.rad.rid(git)
rid, commit = self._get_repo_info(git)
trigger = Trigger(rid, commit)
ci = NativeCI(self.rad, self.config)
ci.without_config()
@@ -120,9 +118,7 @@ class Suite:
def test_config_missing(self):
git = self._create_git_repo("config-missing")
self._create_valid_native_yaml(git, "echo hello world")
commit = git.head()
self.rad.init(git)
rid = self.rad.rid(git)
rid, commit = self._get_repo_info(git)
trigger = Trigger(rid, commit)
cfg2 = Config("no-config-file")
ci = NativeCI(self.rad, cfg2)