From ade0b577835181e717cf0cd9521be0da08d48d0c Mon Sep 17 00:00:00 2001 From: Andreas Lydersen Date: Thu, 19 Oct 2023 10:09:26 +0200 Subject: [PATCH] changing driver whereabouts --- tests/test_dwh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_dwh.py b/tests/test_dwh.py index 5fc9a5f..5bb090a 100644 --- a/tests/test_dwh.py +++ b/tests/test_dwh.py @@ -13,7 +13,7 @@ def mock_connect(self): pass monkeypatch.setattr( - "database_operations.DWH.connect_to_database_using_pyodbc", mock_connect + "pyprediktormapclient.dwh.DWH.connect_to_database_using_pyodbc", mock_connect ) dwh = DWH(grs(), grs(), grs(), grs()) @@ -22,7 +22,7 @@ def mock_connect(self): def test_connect_to_database_using_pyodbc_no_drivers(monkeypatch): # Mock the absence of ODBC drivers - monkeypatch.setattr("database_operations.pyodbc.drivers", lambda: []) + monkeypatch.setattr("pyprediktormapclient.dwh.pyodbc.drivers", lambda: []) # Test failure scenario when no ODBC drivers are available with pytest.raises(ValueError) as excinfo: