diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-01-10 15:59:55 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-01-10 17:38:05 +0200 |
commit | ef1f1bb092df3c0016b8f27d5c7b05d1753833d9 (patch) | |
tree | 607049769b250f9387af52251ae215b0bb35f573 | |
parent | 20fab34125be3fd481a79122d2186b2151ebfa70 (diff) | |
download | radicle-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-x | test-suite | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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) |