Skip to content

Offline Tests

Offline tests use mocked REST/WS behavior and do not require real credentials.

How To Run

pip install -r requirements.txt
pytest

Guidelines

  • Mock FYERS SDK calls.
  • Avoid environment-dependent paths; use temp directories.
  • Keep tests deterministic and fast.

Scenario Example

Scenario: You want to test cache gap detection. - Use a small in-memory dataset and mock the REST adapter.