summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-01-10 16:03:29 +0200
committerLars Wirzenius <liw@liw.fi>2024-01-10 17:38:05 +0200
commit84ed4678d8df7bf5804b2cd4bcacba05541cb13f (patch)
tree583f771676d0b5d7e65dcdd5e2c7ae3148ead12e
parentb252e87e0a2f4b0b1ef8b095b994e070a741038c (diff)
downloadradicle-native-ci-84ed4678d8df7bf5804b2cd4bcacba05541cb13f.tar.gz
refactor: use _create_git_repo
Signed-off-by: Lars Wirzenius <liw@liw.fi>
-rwxr-xr-xtest-suite8
1 files changed, 2 insertions, 6 deletions
diff --git a/test-suite b/test-suite
index 904a8a8..be48201 100755
--- a/test-suite
+++ b/test-suite
@@ -102,9 +102,7 @@ class Suite:
self.assert_success(resps[1])
def test_without_config_env_var(self):
- git = Git(os.path.join(self.tmp, "no-config"))
- git.init()
- git.write("README.md", "README")
+ 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())
@@ -123,9 +121,7 @@ class Suite:
assert "RADICLE_NATIVE_CI" in stderr
def test_config_missing(self):
- git = Git(os.path.join(self.tmp, "config-missing"))
- git.init()
- git.write("README.md", "README")
+ 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())