Skip to content

Mock jretrieve - #229

Draft
jonasbhend wants to merge 11 commits into
testing-hackathonfrom
mock-jretrieve
Draft

Mock jretrieve#229
jonasbhend wants to merge 11 commits into
testing-hackathonfrom
mock-jretrieve

Conversation

@jonasbhend

Copy link
Copy Markdown
Contributor

This PR implements mocking of the jretrieve call for testing. Because the integration test spawns a python subprocess, standard python monkeypatch mocking cannot be used. Instead the call to jretrieve is redirected to mock_jretrieve using environment variables (i.e. inserted in the front of the search path).

Summary of changes

  • capture jretrieve data used for mocking
  • mock_jretrieve returns captured data for testing
  • mocking function defined in conftest.py and called in test_meteogram_small.py
  • renamed testing functions and extended testing config to cover more use cases

@jonasbhend

Copy link
Copy Markdown
Contributor Author

cscs-ci run

@jonasbhend

Copy link
Copy Markdown
Contributor Author

cscs-ci run integration_test_job

@jonasbhend

Copy link
Copy Markdown
Contributor Author

cscs-ci run

@jonasbhend

Copy link
Copy Markdown
Contributor Author

cscs-ci run

@jonasbhend

Copy link
Copy Markdown
Contributor Author

cscs-ci run

@jonasbhend
jonasbhend changed the base branch from main to testing-hackathon July 24, 2026 10:33
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.

1 participant