Skip to content

Conversation

@semoi
Copy link
Owner

@semoi semoi commented Nov 24, 2025

No description provided.

The hashFiles function was failing on macOS with "Fail to hash files
under directory" error. Using setup-python's built-in pip caching
is more reliable and works consistently across all platforms.
…sues

- test_basic_workflow.py:
  - Use return_value instead of side_effect for unlimited mock responses
  - Simplify tests to focus on what can be tested with mocks
  - Handle WebSocketError and WebSocketTimeoutError appropriately

- test_error_scenarios.py:
  - Add ConfigurationError to expected exceptions
  - Fix symbol validation tests (use alphanumeric symbols)
  - Update TvDatafeedLive tests to check correct API methods
  - Fix connection error tests to handle lazy connection

- test_live_feed_workflow.py:
  - Rewrite all tests to use correct TvDatafeedLive API:
    - new_seis(), del_seis() instead of start_live_feed()
    - new_consumer(), del_consumer() for callbacks
    - del_tvdatafeed() instead of stop_live_feed()
  - Add proper cleanup in fixtures
  - Test SEIS and Consumer management properly
The new_seis() method calls search_symbol() internally which makes
HTTP requests to TradingView. Added mock for requests.get to prevent
real network calls and 403 errors during tests.
@semoi semoi closed this Nov 24, 2025
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.

3 participants