-
-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking Issue for Pytest migration. #4156
Comments
I closed the older issue, just the updates to the Contributing Guide and the removal of the |
there are still 14 files left. I should open a new PR concluding everything or should I cover them in pt-7? |
A new PR would be better. Part 6 and Part 7 are ready to merge, I approved them |
Correction : 9 files |
Almost there with completing them all! |
@prady0t, after #4443, it looks like 8 files are still left: ❯ rg unittest tests/testcase.py
4:import unittest
7:class TestCase(unittest.TestCase):
tests/integration/test_models/test_submodels/test_interface/test_butler_volmer.py
8:import unittest
12:class TestButlerVolmer(unittest.TestCase):
387: unittest.main()
tests/unit/test_expression_tree/test_concatenations.py
5:import unittest.mock as mock
tests/unit/test_parameters/test_parameter_sets/test_Ecker2015.py
6:import unittest
9:class TestEcker2015(unittest.TestCase):
55: unittest.main()
tests/unit/test_expression_tree/test_functions.py
6:import unittest.mock as mock
tests/unit/test_expression_tree/test_input_parameter.py
7:import unittest.mock as mock
tests/unit/test_expression_tree/test_operations/test_evaluate_python.py
9:import unittest
758: unittest.main()
tests/integration/test_models/test_full_battery_models/test_lithium_ion/test_compare_outputs.py
7:import unittest
11:class TestCompareOutputs(unittest.TestCase):
153: unittest.main() Could you migrate these files, too? Also, please check for any additional files that were missed. |
Thanks for pointing out! Check #4472 |
@prady0t Is this done now? |
Yes, I think this can be closed. |
This is a tracking issue to keep track of all the files that have been successfully migrated to pytest.
Integration Tests
├──
test_models
│ ├──
test_full_battery_models
│ │ ├──
test_equivalent_circuit
│ │ ├──
test_lead_acid
│ │ │ └──
test_side_reactions
│ │ └──
test_lithium_ion
base_lithium_ion_tests.py(Not needed)test_compare_outputs.py(Not needed)│ └──
test_submodels
│ ├──
test_external_circuit
├──
test_solvers
└──
test_spatial_methods
Unit Tests
├──
test_discretisations
├──
test_experiments
├──
test_expression_tree
│ ├──
test_operations
│ ├──
test_printing
├──
test_geometry
├──
test_meshes
├──
test_models
│ ├──
test_full_battery_models
│ │ ├──
test_equivalent_circuit
│ │ ├──
test_lead_acid
│ │ └──
test_lithium_ion
│ └──
test_submodels
├──
test_parameters
│ ├──
test_parameter_sets
├──
test_plotting
├──
test_serialisation
├──
test_solvers
├──
test_spatial_methods
│ ├──
test_finite_volume
test_util.py
to pytest #4214)Note :
setup_method
instead of fixtures everywhere.test_citations.py
: This is an example of a file that contains a lot of boilerplate and can be reduced by fixtures and parametrizing the test casestests/unit/test_parameters/test_process_parameter_data.py
The text was updated successfully, but these errors were encountered: