Skip to content

Conversation

@ogenstad
Copy link
Contributor

@ogenstad ogenstad commented Nov 2, 2024

This test was added after the repo was split and shouldn't be in the integration folder as we're only mocking the data. Also given the config of the conftest fixtures that gets automatically loaded it wouldn't work as written as part of the integration tests when we re-enable them.

Also moved the utils into the helpers directory.

I've also marked four of the tests as ok to fail, this wasn't noticed earlier but looks to be related to Python 3.9. I still think it's better to have it in this state to ease the reactivation of integration tests where these tests previously didn't exist.

@codecov
Copy link

codecov bot commented Nov 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

@@             Coverage Diff             @@
##           develop     #123      +/-   ##
===========================================
+ Coverage    64.34%   65.38%   +1.04%     
===========================================
  Files           75       75              
  Lines         6893     6893              
  Branches      1365     1365              
===========================================
+ Hits          4435     4507      +72     
+ Misses        2103     2020      -83     
- Partials       355      366      +11     
Flag Coverage Δ
python-3.10 44.39% <ø> (+1.04%) ⬆️
python-3.11 44.39% <ø> (+1.04%) ⬆️
python-3.12 44.39% <ø> (+1.04%) ⬆️
python-3.9 43.68% <ø> (+0.39%) ⬆️
python-filler-3.12 23.85% <ø> (ø)

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

see 7 files with indirect coverage changes

@ogenstad ogenstad marked this pull request as ready for review November 2, 2024 09:29
@ogenstad ogenstad requested a review from a team November 2, 2024 09:29
assert output.exit_code == 1

@staticmethod
@pytest.mark.xfail(reason="Seems problematic in Python 3.9")
Copy link
Contributor

Choose a reason for hiding this comment

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

we could use skipif here to exclude these tests in 3.9 but keep them for the other version of Python
https://docs.pytest.org/en/stable/how-to/skipping.html#id1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yes good call, updated to do this instead.

@ogenstad ogenstad merged commit 1e12ef9 into develop Nov 2, 2024
12 checks passed
@ogenstad ogenstad deleted the pog-relocate-test branch November 2, 2024 19:12
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.

3 participants