Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp committed Feb 5, 2022
1 parent 9ab6fa7 commit eab470b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/unit/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def test_load_function(self):
# create a new lithium_ion folder in the root PyBaMM directory
subprocess.run(["pybamm_edit_parameter", "lithium_ion"])

# path for a function in the created directory -> x/y/z/PyBaMM/lithium_ion/negative_electrode/ ....
# path for a function in the created directory ->
# x/y/z/PyBaMM/lithium_ion/negative_electrode/ ....
test_path = os.path.join(
os.getcwd(),
"lithium_ion",
Expand All @@ -100,10 +101,10 @@ def test_load_function(self):
# load the function
func = pybamm.load_function(test_path)

# cannot directly do - lithium_ion.negative_electrodes.graphite_Chen2020 as lithium_ion is not a
# python module
# cannot directly do - lithium_ion.negative_electrodes.graphite_Chen2020 as
# lithium_ion is not a python module
module_object = importlib.import_module(
"lithium_ion.negative_electrodes.graphite_Chen2020.graphite_LGM50_electrolyte_exchange_current_density_Chen2020"
"lithium_ion.negative_electrodes.graphite_Chen2020.graphite_LGM50_electrolyte_exchange_current_density_Chen2020" # noqa
)
self.assertEqual(
func,
Expand Down

0 comments on commit eab470b

Please sign in to comment.