Skip to content

fix unit tests - #2056

Merged
AlyaGomaa merged 5 commits into
developfrom
alya/fix_failing_tests_in_develop
Aug 25, 2026
Merged

fix unit tests#2056
AlyaGomaa merged 5 commits into
developfrom
alya/fix_failing_tests_in_develop

Conversation

@AlyaGomaa

@AlyaGomaa AlyaGomaa commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

closes #2050

ConfigParser had ml_module_* and https_anomaly_* accessor methods
defined twice (interleaved), silently shadowing the earlier
definitions and tripping ruff F811. Also drops a duplicate Optional
import and trims boilerplate docstrings on the risk-weight accessors.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-project-automation github-project-automation Bot moved this to Todo in Slips Aug 25, 2026
@AlyaGomaa AlyaGomaa changed the title PR to trigger CI fix unit tests Aug 25, 2026
The ml_linear_model/ml_online_model artifact .bin files are stored via
Git LFS, but actions/checkout wasn't pulling LFS content, so CI jobs
got LFS pointer text files instead of the real pickles, causing
_pickle.UnpicklingError: invalid load key, 'v'. in every integration
test that loads these modules.
actions/checkout's lfs:true option requires the git-lfs CLI, which
isn't present in the stratosphereips/slips_dependencies container
image (unlike the GitHub-hosted runner itself), so every job that
runs inside that container failed to check out with
"Unable to locate executable file: git-lfs".
… arg

start_redis_cache_if_not_running() passes a real Output instance as
RedisDB's first arg, not an empty string, so the mock assertion never
matched.
mark_self_as_done_processing() no longer uses time.time(), so
patching slips_files.core.input.input.time failed with
ModuleNotFoundError (input.py never imports the time module).
@AlyaGomaa
AlyaGomaa merged commit f894265 into develop Aug 25, 2026
158 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Slips Aug 25, 2026
@AlyaGomaa
AlyaGomaa deleted the alya/fix_failing_tests_in_develop branch August 25, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant