Allows choosing and managing each tool

This commit is contained in:
Guillaume Tâche committed 2024-10-03 21:55:14 +02:00
1 parent 0a2f9e0c31
commit df58cf4585
117 files changed
+1547 -1515

No files matched your search

@@ -1,5 +1,6 @@
package com.github.gtache.autosubtitle.setup.conda;
import com.github.gtache.autosubtitle.ToolType;
import com.github.gtache.autosubtitle.impl.OS;
import com.github.gtache.autosubtitle.process.ProcessRunner;
import com.github.gtache.autosubtitle.setup.SetupException;
@@ -42,6 +43,11 @@ public class CondaSetupManager extends AbstractSetupManager {
return "conda";
}
@Override
public ToolType type() {
return null; //Just an intermediary tool
}
@Override
protected SetupStatus getStatus() throws SetupException {
if (isSystemCondaInstalled()) {
@@ -68,6 +68,11 @@ class TestCondaSetupManager {
assertEquals("conda", condaSetupManager.name());
}
@Test
void testType() {
assertNull(condaSetupManager.type());
}
@Test
void testGetStatusIsSystemInstalled() throws SetupException {
assertEquals(SetupStatus.SYSTEM_INSTALLED, condaSetupManager.getStatus());