-
-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving a bunch of integration test files to pytest. (#4238)
* Moving a bunch of integration test files to pytest Signed-off-by: Pradyot Ranjan <[email protected]> * style: pre-commit fixes --------- Signed-off-by: Pradyot Ranjan <[email protected]> Co-authored-by: Pradyot Ranjan <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Arjun Verma <[email protected]> Co-authored-by: Agriya Khetarpal <[email protected]>
- Loading branch information
1 parent
e625a09
commit 3ed1405
Showing
20 changed files
with
55 additions
and
258 deletions.
There are no files selected for viewing
13 changes: 1 addition & 12 deletions
13
...integration/test_models/test_full_battery_models/test_equivalent_circuit/test_thevenin.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,9 @@ | ||
import pybamm | ||
import unittest | ||
import tests | ||
from tests import TestCase | ||
|
||
|
||
class TestThevenin(TestCase): | ||
class TestThevenin: | ||
def test_basic_processing(self): | ||
model = pybamm.equivalent_circuit.Thevenin() | ||
modeltest = tests.StandardModelTest(model) | ||
modeltest.test_all() | ||
|
||
|
||
if __name__ == "__main__": | ||
print("Add -v for more debug output") | ||
import sys | ||
|
||
if "-v" in sys.argv: | ||
debug = True | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 3 additions & 12 deletions
15
...s/integration/test_models/test_full_battery_models/test_lithium_ion/test_dfn_half_cell.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,12 @@ | ||
# | ||
# Tests for the lithium-ion DFN half-cell model | ||
# | ||
from tests import TestCase | ||
import pybamm | ||
import unittest | ||
from tests import BaseIntegrationTestLithiumIonHalfCell | ||
import pytest | ||
|
||
|
||
class TestDFNHalfCell(BaseIntegrationTestLithiumIonHalfCell, TestCase): | ||
class TestDFNHalfCell(BaseIntegrationTestLithiumIonHalfCell): | ||
@pytest.fixture(autouse=True) | ||
def setUp(self): | ||
self.model = pybamm.lithium_ion.DFN | ||
|
||
|
||
if __name__ == "__main__": | ||
print("Add -v for more debug output") | ||
import sys | ||
|
||
if "-v" in sys.argv: | ||
debug = True | ||
unittest.main() |
Oops, something went wrong.