Allows choosing and managing each tool
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user