mirror of
https://seed.radicle.dev/rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE.git
synced 2026-11-15 16:00:39 +08:00
refactor: use _get_repo_info
Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
+2
-6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user