summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-01-10 16:05:07 +0200
committerLars Wirzenius <liw@liw.fi>2024-01-10 17:38:05 +0200
commit5336bf8195015a4d5d804444123e78fdb436d240 (patch)
treebca32b887cfea13098f2f1b8a608a7e0e03a55e6
parent84ed4678d8df7bf5804b2cd4bcacba05541cb13f (diff)
downloadradicle-native-ci-5336bf8195015a4d5d804444123e78fdb436d240.tar.gz
refactor: use _create_valid_native_yaml
Signed-off-by: Lars Wirzenius <liw@liw.fi>
-rwxr-xr-xtest-suite10
1 files changed, 2 insertions, 8 deletions
diff --git a/test-suite b/test-suite
index be48201..11be6f9 100755
--- a/test-suite
+++ b/test-suite
@@ -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)