test: add unit tests for get_previous_step_or_raise (#1908)#3218
Conversation
Tests are added at the bottom of test_simple_cache.py
|
Hi @severo, I’ve addressed the import linting issue using but still facing Ruff Linter?: |
|
The way we do it is to go to libs/libcommon and run Another way is to install the ruff extension in vscode (if you use it) and autoformat/lint on save |
|
i tried using ruff by |
|
Hi @severo, just wanted to share a quick update: I followed the Hugging Face workflow using poetry install + make style. That worked fine. but nothing in the file I touched (test_simple_cache.py). |
|
Maybe this time it'll work |
|
Here's the log |
|
|
|
Also, assign me or consider me for other issues — I’d love to help however I can! |
|
Cool, good contribution! |
|
Thank you! |
This PR adds unit tests for the
get_previous_step_or_raisefunction, as requested in issue #1908.The test cases include:
CachedArtifactNotFoundError)CachedArtifactError)Note: I wasn't able to run the tests locally due to import resolution issues (
libcommon), but the test logic is clean, uses official helpers (upsert_response,delete_response), and CI should be able to describe the issue more accurately (if any occurs).