Skip to content

Commit

Permalink
#785 flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinsulzer committed Jan 15, 2020
1 parent 0f86b11 commit d46f3a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Base class for particles each with uniform concentration (i.e. infinitely fast
# diffusion in r)
#
import pybamm
from ..base_particle import BaseParticle


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@

class TestBaseParticle(unittest.TestCase):
def test_public_functions(self):
variables = {
"Negative particle surface concentration": 0,
"Positive particle surface concentration": 0,
}
submodel = pybamm.particle.BaseParticle(None, "Negative")
std_tests = tests.StandardSubModelTests(submodel)
with self.assertRaises(NotImplementedError):
std_tests.test_all()
std_tests = tests.StandardSubModelTests(submodel, variables)
std_tests.test_all()

submodel = pybamm.particle.BaseParticle(None, "Positive")
std_tests = tests.StandardSubModelTests(submodel)
with self.assertRaises(NotImplementedError):
std_tests.test_all()
std_tests = tests.StandardSubModelTests(submodel, variables)
std_tests.test_all()


if __name__ == "__main__":
Expand Down

0 comments on commit d46f3a8

Please sign in to comment.