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

Removing testcase.py file #4231

Merged
merged 4 commits into from
Aug 2, 2024

Conversation

prady0t
Copy link
Contributor

@prady0t prady0t commented Jul 1, 2024

Description

Reverting back changes from PR #2844. We are using pytest fixtures now to solve this. Once #4180 gets merged, we can merge this as well.

Fixes # (issue)

Type of change

Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.

  • New feature (non-breaking change which adds functionality)
  • Optimization (back-end change that speeds up the code)
  • Bug fix (non-breaking change which fixes an issue)

Key checklist:

  • No style issues: $ pre-commit run (or $ nox -s pre-commit) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)
  • All tests pass: $ python run-tests.py --all (or $ nox -s tests)
  • The documentation builds: $ python run-tests.py --doctest (or $ nox -s doctests)

You can run integration tests, unit tests, and doctests together at once, using $ python run-tests.py --quick (or $ nox -s quick).

Further checks:

  • Code is commented, particularly in hard-to-understand areas
  • Tests added that prove fix is effective or that feature works

prady0t and others added 2 commits July 1, 2024 12:59
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
@prady0t prady0t marked this pull request as draft July 1, 2024 07:34
@prady0t
Copy link
Contributor Author

prady0t commented Jul 1, 2024

Converting it to draft until the other PR gets merged.

Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
@prady0t prady0t marked this pull request as ready for review August 1, 2024 11:28
@prady0t
Copy link
Contributor Author

prady0t commented Aug 1, 2024

@agriyakhetarpal I think this is ready to be reviewed. Do let me know if I forgot anything.

Copy link

codecov bot commented Aug 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.46%. Comparing base (8983f43) to head (651af5c).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4231   +/-   ##
========================================
  Coverage    99.46%   99.46%           
========================================
  Files          288      288           
  Lines        22079    22079           
========================================
  Hits         21960    21960           
  Misses         119      119           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Thanks, @prady0t! Have you stress-tested this locally?

@prady0t
Copy link
Contributor Author

prady0t commented Aug 2, 2024

Thanks, @prady0t! Have you stress-tested this locally?

Yes. I remember running it overnight. I got no errors.

@agriyakhetarpal
Copy link
Member

Great, I ran this multiple times as well, albeit not as much as you might have. Nice work!

@agriyakhetarpal agriyakhetarpal merged commit 109b9c4 into pybamm-team:develop Aug 2, 2024
26 checks passed
js1tr3 pushed a commit to js1tr3/PyBaMM that referenced this pull request Aug 12, 2024
* Removing testcase.py file

Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>

* style: pre-commit fixes

* Testcase error fix

Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>

---------

Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
Co-authored-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@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.

None yet

2 participants