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

Avoid deprecated utcnow() #9630

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Avoid deprecated utcnow() #9630

merged 1 commit into from
Jan 2, 2025

Conversation

berland
Copy link
Contributor

@berland berland commented Dec 31, 2024

Issue
Resolves warning when running tests.

Approach
Do as suggested now that Python 3.8 has been dropped.

  • PR title captures the intent of the changes, and is fitting for release notes.
  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Make sure unit tests pass locally after every commit (git rebase -i main --exec 'pytest tests/ert/unit_tests -n logical -m "not integration_test"')

When applicable

  • When there are user facing changes: Updated documentation
  • New behavior or changes to existing untested code: Ensured that unit tests are added (See Ground Rules).
  • Large PR: Prepare changes in small commits for more convenient review
  • Bug fix: Add regression test for the bug
  • Bug fix: Create Backport PR to latest release

@codecov-commenter
Copy link

codecov-commenter commented Dec 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.72%. Comparing base (855c517) to head (143ab5c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9630      +/-   ##
==========================================
- Coverage   91.73%   91.72%   -0.01%     
==========================================
  Files         430      430              
  Lines       26639    26639              
==========================================
- Hits        24437    24435       -2     
- Misses       2202     2204       +2     
Flag Coverage Δ
cli-tests 39.46% <ø> (ø)
everest-models-test 34.19% <50.00%> (-0.01%) ⬇️
gui-tests 71.83% <ø> (ø)
integration-test 38.29% <100.00%> (ø)
performance-tests 51.69% <ø> (+<0.01%) ⬆️
test 39.61% <100.00%> (ø)
unit-tests 73.99% <50.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link

codspeed-hq bot commented Dec 31, 2024

CodSpeed Performance Report

Merging #9630 will not alter performance

Comparing berland:utcnow (143ab5c) with main (855c517)

Summary

✅ 24 untouched benchmarks

@berland berland added the release-notes:skip If there should be no mention of this in release notes label Jan 2, 2025
Copy link
Contributor

@andreas-el andreas-el left a comment

Choose a reason for hiding this comment

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

🏁

@berland berland merged commit 9e2e32f into equinor:main Jan 2, 2025
41 checks passed
@berland berland deleted the utcnow branch January 9, 2025 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:skip If there should be no mention of this in release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants