Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp committed Nov 13, 2023
1 parent 2e30131 commit 4711362
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions pybamm/expression_tree/printing/sympy_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ def _print_Derivative(self, expr):

return eqn


def custom_print_func(expr, **settings):
return CustomPrint().doprint(expr)
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import uuid

import pybamm
from pybamm.expression_tree.operations.latexify import Latexify


class TestLatexify(TestCase):
Expand All @@ -19,9 +18,6 @@ def test_latexify(self):
model_spme = pybamm.lithium_ion.SPMe()
func_spme = str(model_spme.latexify())

# Test docstring
self.assertEqual(pybamm.BaseModel.latexify.__doc__, Latexify.__doc__)

# Test model name
self.assertIn("Single Particle Model with electrolyte Equations", func_spme)

Expand Down

0 comments on commit 4711362

Please sign in to comment.