summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-01-10 15:59:55 +0200
committerLars Wirzenius <liw@liw.fi>2024-01-10 17:38:05 +0200
commitef1f1bb092df3c0016b8f27d5c7b05d1753833d9 (patch)
tree607049769b250f9387af52251ae215b0bb35f573
parent20fab34125be3fd481a79122d2186b2151ebfa70 (diff)
downloadradicle-native-ci-ef1f1bb092df3c0016b8f27d5c7b05d1753833d9.tar.gz
refactor: add helper method to create a valid native.yaml
Signed-off-by: Lars Wirzenius <liw@liw.fi>
-rwxr-xr-xtest-suite8
1 files 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)