Skip to content

Commit

Permalink
Reduce diff
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith committed Dec 26, 2024
1 parent 373ba4e commit a52863d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/job_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from unittest.mock import AsyncMock, patch
from unittest.mock import AsyncMock, Mock, patch

import pytest
from dune_client.query import QueryBase
Expand Down Expand Up @@ -36,8 +36,9 @@ async def test_metrics_collection(self, mock_metrics_push, *_):
db_url="postgresql://postgres:postgres@localhost:5432/postgres",
table_name="some_table",
)

src.fetch = AsyncMock()
dest.save = AsyncMock()
dest.save = Mock()
test_job = Job(name="job name", source=src, destination=dest)

with patch("src.metrics.env", return_value=None):
Expand Down

0 comments on commit a52863d

Please sign in to comment.