Skip to content

Commit ae846d4

Browse files
TexasCodingclaude
andcommitted
fix: correct import error in test_client_market_data.py
- Replace ProjectXAPIError with ProjectXError (correct exception class) - This fixes the ImportError preventing tests from running 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 7c76b31 commit ae846d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_client_market_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import pytz
99

1010
from project_x_py.client.market_data import MarketDataMixin
11-
from project_x_py.exceptions import ProjectXAPIError, ProjectXInstrumentError
11+
from project_x_py.exceptions import ProjectXError, ProjectXInstrumentError
1212
from project_x_py.models import Instrument
1313

1414

@@ -131,7 +131,7 @@ async def test_get_instrument_api_error(self, market_client):
131131
mock_response = {"success": False, "error": "API Error"}
132132
market_client._make_request.return_value = mock_response
133133

134-
with pytest.raises(ProjectXAPIError): # Will be wrapped by handle_errors
134+
with pytest.raises(ProjectXError): # Will be wrapped by handle_errors
135135
await market_client.get_instrument("MNQ")
136136

137137
@pytest.mark.asyncio

0 commit comments

Comments
 (0)