Unit test stuck

Open
#176 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
cli, testing

Research direction

Start with tests/commands/test_live.py and run the three named live non-interactive tests to reproduce the slow iteration. Read related issue #172 for context and trace the option-combination loop. Done means the tests complete without hanging or excessive delay while preserving their existing fallback and abort coverage.

Written by the indexing model from the issue text.

Description

test_live_non_interactive_aborts_when_missing_brokerage_options, test_live_non_interactive_falls_back_to_lean_config_for_brokerage_settings, and test_live_non_interactive_falls_back_to_lean_config_for_data_feed_settings unit tests from test_live.py were stuck if not constrained. The combination numbers (per for loop) of options can be up to 6000+ that dragged down the processing speed of the tests. Further investigation is need on addressing the slow iteration.

Related to #172

Dominant language
Python
Stars
335
Forks
172
Avg merge
6h 54m
Merged PRs (30d)
37

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from QuantConnect/lean-cli

All issues in QuantConnect/lean-cli

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.