Refactor package structure to de.tki.comfymodels, fix compilation errors, and prioritize imported model list in search
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package de.tki.comfymodels.service;
|
||||
|
||||
import de.tki.comfymodels.service.impl.WorkflowService;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
public class WorkflowServiceTest {
|
||||
|
||||
private final WorkflowService workflowService = new WorkflowService();
|
||||
|
||||
@Test
|
||||
public void testExtractFromPng() throws IOException {
|
||||
File pngFile = new File("flux_canny_model_example.png");
|
||||
if (pngFile.exists()) {
|
||||
String workflow = workflowService.extractWorkflow(pngFile);
|
||||
assertNotNull(workflow);
|
||||
assertTrue(workflow.contains("{"));
|
||||
} else {
|
||||
System.out.println("Skipping test: flux_canny_model_example.png not found");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user