summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-01-10 15:51:01 +0200
committerLars Wirzenius <liw@liw.fi>2024-01-10 17:38:05 +0200
commita8fc705087082ebbf433dc1ee6724396220fb1a4 (patch)
tree64caea044a2048fae788e49d765e6b6bab6fa2ad
parenta99dec50075b63d3b6d5fc0af82979be7a589814 (diff)
downloadradicle-native-ci-a8fc705087082ebbf433dc1ee6724396220fb1a4.tar.gz
refactor: drop dead code
Signed-off-by: Lars Wirzenius <liw@liw.fi>
-rwxr-xr-xtest-suite34
1 files changed, 0 insertions, 34 deletions
diff --git a/test-suite b/test-suite
index 1ecbcc3..43eeabd 100755
--- a/test-suite
+++ b/test-suite
@@ -173,40 +173,6 @@ class Suite:
assert "string" in stderr
-class TestCase:
- def __init__(self, tmp, name):
- self._tmp = tmp
- self._name = name
-
- def shell(self, shell):
- self._shell = shell
-
- def setup(self, shell):
- git = Git(os.path.join(self._tmp, self._name))
- git.init()
- git.write("README.md", "README")
- native = NativeYaml(shell)
- debug(f"native.yaml: {native.yaml()}")
- git.write(".radicle/native.yaml", native.yaml())
- git.commit("first commit")
-
- commit = git.head()
- self.rad.init(git)
- rid = self.rad.rid(git)
-
- return rid, commit
-
- def create_ci(self, rad, config):
- return NativeCI(rad, config)
-
- def run_ci(self, ci, rid, commit):
- trigger = Trigger(rid, commit)
- exit, resps = ci.run(trigger)
- debug(f"exit: {exit}")
- debug(f"responses: {resps}")
- return exit, resps
-
-
class Git:
def __init__(self, path):
self.path = path