refactor: add helper method to create a valid native.yaml

Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
Lars Wirzenius
2024-01-10 17:38:05 +02:00
parent 20fab34125
commit ef1f1bb092
+5 -3
View File
@@ -63,13 +63,15 @@ class Suite:
git.commit("first commit")
return git
def _setup(self, repo_name, shell):
git = self._create_git_repo(repo_name)
def _create_valid_native_yaml(self, git, shell):
native = NativeYaml(shell)
debug(f"native.yaml: {native.yaml()}")
git.write(".radicle/native.yaml", native.yaml())
git.commit("add native.yaml")
def _setup(self, repo_name, shell):
git = self._create_git_repo(repo_name)
self._create_valid_native_yaml(git, shell)
commit = git.head()
self.rad.init(git)
rid = self.rad.rid(git)