Skip to content

Commit

Permalink
Merge pull request #381 from CarmineOptions/fix/poetry-version
Browse files Browse the repository at this point in the history
Fix/poetry version
  • Loading branch information
djeck1432 authored Jan 22, 2025
2 parents 8025f55 + e903d31 commit a8fb29d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/data_handler/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /code
COPY data_handler/poetry.lock data_handler/pyproject.toml /code/
COPY data_handler/entrypoint.sh /code/entrypoint.sh

RUN pip install poetry \
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/usr/local/ POETRY_VERSION=1.8.3 python3 -\
&& poetry config virtualenvs.create false \
&& poetry install --no-dev

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ def test_process_withdrawal_event(self, zklend_state, sample_event, mock_portfol
"""Test withdrawal event processing"""
mock_parsed_data = MagicMock()
mock_parsed_data.user = "0x123"
mock_parsed_data.token = "0x456"
mock_parsed_data.amount = "123"
mock_parsed_data.face_amount = int(1e18)

with patch(
"data_handler.handler_tools.data_parser.zklend.ZklendDataParser.parse_withdrawal_event",
"data_handler.handlers.loan_states.zklend.events.ZklendDataParser.parse_withdrawal_event",
return_value=mock_parsed_data,
):
user = mock_parsed_data.user
Expand All @@ -131,7 +131,6 @@ def test_process_withdrawal_event(self, zklend_state, sample_event, mock_portfol
loan_entity.extra_info = MagicMock()

zklend_state.loan_entities[user] = loan_entity

zklend_state.process_withdrawal_event(sample_event)

mock_portfolio.increase_value.assert_called()
Expand Down

0 comments on commit a8fb29d

Please sign in to comment.