Radish alpha
r
rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE
Radicle CI adapter for native CI
Radicle
Git
refactor: add helper method to create a valid native.yaml
Lars Wirzenius committed 2 years ago
commit ef1f1bb092df3c0016b8f27d5c7b05d1753833d9
parent 20fab34
1 file changed +5 -3
modified 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)