Skip to content

Commit

Permalink
Make sure BasicModelInterface.jl is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Oct 2, 2023
1 parent 5d64b15 commit 45c9879
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/test_julia.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
from numpy.testing import assert_array_equal
import pytest


try:
from grpc4bmi.bmi_julia_model import BmiJulia
from grpc4bmi.bmi_julia_model import BmiJulia,install
from juliacall import Main as jl
except ImportError:
BmiJulia = None
Expand All @@ -14,10 +15,14 @@
class TestJuliaHeatModel:
@pytest.fixture(scope="class", autouse=True)
def install_heat(self):
# TODO for other Julia models do we need to install BasicModelInterface?
# it is dep of Heat.jl, but we use it directly
install('BasicModelInterface')
jl.Pkg.add(
url="https://github.com/csdms/bmi-example-julia.git",
rev="d8b354ceddf6b048727c2e214031f43d62964120",
)


@pytest.fixture
def cfg_file(self, tmp_path: Path):
Expand Down

0 comments on commit 45c9879

Please sign in to comment.