Skip to content

Commit

Permalink
clean up and fix a test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanetteclark committed Oct 17, 2023
1 parent 566f336 commit a807987
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ public Result runCheck(Check check) throws XPathExpressionException {
result.setStatus(Status.ERROR);
result.setOutput(new Output(e.getMessage()));
}
//dispatcher.close();

} else {
// we just skip instead
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.io.IOUtils;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import edu.ucsb.nceas.mdqengine.model.Result;
Expand All @@ -25,8 +26,13 @@ public class PythonDispatcherTest {

private String dataUrl = "https://knb.ecoinformatics.org/knb/d1/mn/v2/object/doi:10.5063/AA/wolkovich.29.1";

@BeforeClass
public static void setupOnce() {
Dispatcher.setupJep();
}

@Before
public void init() {
public void init(){
dispatcher = Dispatcher.getDispatcher("python");
}

Expand Down

0 comments on commit a807987

Please sign in to comment.