test: Add coverage for DataFlow.generate_paths edge case and fix broken tests#34
test: Add coverage for DataFlow.generate_paths edge case and fix broken tests#34mysticBliss wants to merge 2 commits into
Conversation
…ests - Added `test_generate_paths_no_frequency` to `tests/test_data_flow_paths.py` to verify that `generate_paths` returns `[]` when `source_frequency_value` is None. - Fixed existing tests in `tests/test_data_flow_paths.py` that were failing because they passed raw format strings instead of Python expressions for `source_data_format`. - Updated `test_generate_paths_invalid_strftime` to properly test `eval()` failure fallback by using invalid Python syntax. Co-authored-by: mysticBliss <11345806+mysticBliss@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Fixed `AttributeError` in `DataMovements.py` by accessing `_environments` correctly. - Patched `lit` in `tests/test_integration.py` to fix `ModuleNotFoundError` related to `pyspark.testing`. - Updated `tests/test_integration.py` assertions to verify interactions on mocked DataProcessor objects instead of uncalled `spark.sql`. - Added `test_generate_paths_no_frequency` to `tests/test_data_flow_paths.py` to cover the `DataFlow` edge case where frequency is None. - Fixed existing tests in `tests/test_data_flow_paths.py` to use valid Python expressions for `source_data_format`. Co-authored-by: mysticBliss <11345806+mysticBliss@users.noreply.github.com>
This PR addresses a testing gap where the behavior of
DataFlow.generate_pathswith no frequency/execution date was not covered. It adds a test case to verify this returns an empty list.Additionally, it fixes several existing tests in
tests/test_data_flow_paths.pythat were broken because they incorrectly assumedsource_data_formataccepted raw format strings, whereas the implementation expects Python expressions (likedt.strftime(...)). These tests were updated to use valid expressions, ensuring the test suite is reliable and green.PR created automatically by Jules for task 15626198218184403801 started by @mysticBliss