From f67357b36f884db4cc49766a02b59d4dfae571e7 Mon Sep 17 00:00:00 2001 From: Ferran Brosa Planella Date: Tue, 3 Nov 2020 12:01:33 +0100 Subject: [PATCH] #884 add test citation Brosa Planella 2020 --- tests/unit/test_citations.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/unit/test_citations.py b/tests/unit/test_citations.py index bc7c70a5a7..a2e243f552 100644 --- a/tests/unit/test_citations.py +++ b/tests/unit/test_citations.py @@ -107,6 +107,15 @@ def test_subramanian_2005(self): pybamm.particle.PolynomialManyParticles(None, "Negative", "quadratic profile") self.assertIn("subramanian2005", citations._papers_to_cite) + def test_brosaplanella_2020(self): + # Test that calling relevant bits of code adds the right paper to citations + citations = pybamm.citations + + citations._reset() + self.assertNotIn("brosaplanella2020TSPMe", citations._papers_to_cite) + pybamm.electrolyte_conductivity.Integrated(None) + self.assertIn("brosaplanella2020TSPMe", citations._papers_to_cite) + def test_scikit_fem(self): citations = pybamm.citations