mirror of
https://seed.radicle.dev/rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE.git
synced 2026-10-30 16:30:59 +08:00
refactor: use _create_git_repo
Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
+2
-6
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user