mirror of
https://seed.radicle.dev/rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE.git
synced 2026-11-29 14:30:32 +08:00
refactor: use _create_valid_native_yaml
Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
+2
-8
@@ -103,10 +103,7 @@ class Suite:
|
||||
|
||||
def test_without_config_env_var(self):
|
||||
git = self._create_git_repo("no-config")
|
||||
native = NativeYaml("echo hello world")
|
||||
debug(f"native.yaml: {native.yaml()}")
|
||||
git.write(".radicle/native.yaml", native.yaml())
|
||||
git.commit("first commit")
|
||||
self._create_valid_native_yaml(git, "echo hello world")
|
||||
commit = git.head()
|
||||
self.rad.init(git)
|
||||
rid = self.rad.rid(git)
|
||||
@@ -122,10 +119,7 @@ class Suite:
|
||||
|
||||
def test_config_missing(self):
|
||||
git = self._create_git_repo("config-missing")
|
||||
native = NativeYaml("echo hello world")
|
||||
debug(f"native.yaml: {native.yaml()}")
|
||||
git.write(".radicle/native.yaml", native.yaml())
|
||||
git.commit("first commit")
|
||||
self._create_valid_native_yaml(git, "echo hello world")
|
||||
commit = git.head()
|
||||
self.rad.init(git)
|
||||
rid = self.rad.rid(git)
|
||||
|
||||
Reference in New Issue
Block a user