From ef1f1bb092df3c0016b8f27d5c7b05d1753833d9 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 10 Jan 2024 15:59:55 +0200 Subject: [PATCH] refactor: add helper method to create a valid native.yaml Signed-off-by: Lars Wirzenius --- test-suite | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test-suite b/test-suite index eb31a86..2bbe1f7 100755 --- a/test-suite +++ b/test-suite @@ -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)