Skip to content
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

Refactor test_experiment_step_termination.py*** #3800

Merged

Conversation

abhicodes369
Copy link
Contributor

(from unit test to pytest)

Description

converted a unit test case that uses the unit test to pytest. On the official website of pybamm I saw that they are considering migrating from unit test to pytest.

@agriyakhetarpal
Copy link
Member

Thanks for starting this @abhicodes369. It looks good, but ideally we want to do this after #3617, so I will let this sit for a while until that is complete and pytest is added to the codebase. If you're interested in contributing, please feel free to discuss something over there since multiple people can be assigned to that issue 🙂

@agriyakhetarpal agriyakhetarpal marked this pull request as draft February 4, 2024 17:03
@agriyakhetarpal
Copy link
Member

@abhicodes369, if you're interested, you can help drive #3857 to completion – or we can take this up again after it gets merged (should be about a week at most).

@abhicodes369
Copy link
Contributor Author

I will look into it

Copy link
Member

@agriyakhetarpal agriyakhetarpal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy raises a warning on assert statements despite the fact that it is the recommended way to write pytest-style tests and that these are test files. This can be disabled later, some insights here: fossasia/query-server#332

@agriyakhetarpal agriyakhetarpal marked this pull request as ready for review May 30, 2024 00:08
@agriyakhetarpal
Copy link
Member

@allcontributors please add @abhicodes369 for tests

Copy link
Contributor

@agriyakhetarpal

I've put up a pull request to add @abhicodes369! 🎉

@agriyakhetarpal agriyakhetarpal merged commit 01e652a into pybamm-team:develop May 31, 2024
23 of 24 checks passed
@agriyakhetarpal
Copy link
Member

Thanks, @abhicodes369!

@abhicodes369
Copy link
Contributor Author

thanks @agriyakhetarpal it really means a lot

js1tr3 pushed a commit to js1tr3/PyBaMM that referenced this pull request Aug 12, 2024
* Refactor test_experiment_step_termination.py***
(from unittest to pytest)

* style: pre-commit fixes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants