Skip to content

Commit

Permalink
Fixed JAX solver compatibility test (#4323)
Browse files Browse the repository at this point in the history
* fixed JAX solver compatibility test

* removed jax compatibility test

* Update tests/unit/test_util.py

Co-authored-by: Arjun Verma <arjunverma.oc@gmail.com>

* style: pre-commit fixes

* Update tests/unit/test_util.py

Co-authored-by: Eric G. Kratz <kratman@users.noreply.github.com>

* style: pre-commit fixes

* Update tests/unit/test_util.py

Co-authored-by: Eric G. Kratz <kratman@users.noreply.github.com>

---------

Co-authored-by: Arjun Verma <arjunverma.oc@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric G. Kratz <kratman@users.noreply.github.com>
  • Loading branch information
4 people committed Aug 8, 2024
1 parent fa68ddc commit fe6230d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ def test_get_parameters_filepath(self):
path = os.path.join(package_dir, tempfile_obj.name)
assert pybamm.get_parameters_filepath(tempfile_obj.name) == path

@pytest.mark.skipif(pybamm.have_jax(), reason="The JAX solver is not installed")
@pytest.mark.skipif(not pybamm.have_jax(), reason="JAX is not installed")
def test_is_jax_compatible(self):
assert True
assert pybamm.is_jax_compatible()

def test_git_commit_info(self):
git_commit_info = pybamm.get_git_commit_info()
Expand Down

0 comments on commit fe6230d

Please sign in to comment.