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 warning from pytest #9633

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Conversation

berland
Copy link
Contributor

@berland berland commented Jan 2, 2025

PytestWarning: Value of environment variable ERT_STORAGE_ENS_PATH type should be str, but got PosixPath('/.../storage') (type: PosixPath); converted to str implicitly

Issue
⬆️

Approach
str()

  • 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

PytestWarning: Value of environment variable ERT_STORAGE_ENS_PATH type
should be str, but got PosixPath('/.../storage') (type: PosixPath);
converted to str implicitly
@berland berland self-assigned this Jan 2, 2025
@berland berland added the release-notes:skip If there should be no mention of this in release notes label Jan 2, 2025
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.71%. Comparing base (855c517) to head (a107f0e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9633      +/-   ##
==========================================
- Coverage   91.73%   91.71%   -0.02%     
==========================================
  Files         430      430              
  Lines       26639    26639              
==========================================
- Hits        24437    24433       -4     
- Misses       2202     2206       +4     
Flag Coverage Δ
cli-tests 39.46% <ø> (ø)
everest-models-test 34.19% <ø> (ø)
gui-tests 71.83% <ø> (ø)
integration-test 38.31% <ø> (+0.01%) ⬆️
performance-tests 51.68% <ø> (ø)
test 39.62% <ø> (+<0.01%) ⬆️
unit-tests 73.98% <ø> (-0.02%) ⬇️

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 Jan 2, 2025

CodSpeed Performance Report

Merging #9633 will not alter performance

Comparing berland:avoid_pytest_str_warning (a107f0e) with main (855c517)

Summary

✅ 24 untouched benchmarks

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 9ba6c47 into equinor:main Jan 2, 2025
41 checks passed
@berland berland deleted the avoid_pytest_str_warning 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