Skip to content

Commit 95acc1a

Browse files
authored
Merge pull request #37 from ATNoG/fix/test_singleton_bad_mock
Fix
2 parents 4a9026a + e9bd980 commit 95acc1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_singleton_databases.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def setup_method(self):
166166
@pytest.fixture
167167
def mock_influx_client(self):
168168
"""Mock InfluxDB client for testing."""
169-
with patch("influxdb_client.InfluxDBClient") as mock:
169+
with patch("src.services.influx.InfluxDBClient") as mock:
170170
client = MagicMock()
171171
mock.return_value = client
172172
yield client
@@ -206,7 +206,7 @@ def test_lazy_initialization(self):
206206
# Before first access, instance should be None
207207
assert Influx._instance is None
208208

209-
with patch("influxdb_client.InfluxDBClient") as mock_client:
209+
with patch("src.services.influx.InfluxDBClient") as mock_client:
210210
mock = MagicMock()
211211
mock_client.return_value = mock
212212

@@ -357,7 +357,7 @@ def mock_logger(self):
357357
@pytest.fixture
358358
def mock_influx_client(self):
359359
"""Mock InfluxDB client for testing."""
360-
with patch("influxdb_client.InfluxDBClient") as mock:
360+
with patch("src.services.influx.InfluxDBClient") as mock:
361361
client = MagicMock()
362362
mock.return_value = client
363363
yield client

0 commit comments

Comments
 (0)