Describe the bug
@coderabbit identified an issue with the mock postgres test:
MockPostgresConnector.assert_called_once_with(
'localhost', 'password', 'localhost', 5432, 'database', 'SELECT * FROM table'
)
MockPostgresConnector.assert_called_once_with(
'localhost', 'password', 'user', 5432, 'database', 'SELECT * FROM table'
)
However, making these changes causes a test failure elsewhere and it is not clear why.
To Reproduce
Steps to reproduce the behavior:
Make the recommended changes
Execute pytest
Expected behavior
All tests should pass, instead getting the following error:
E AssertionError: expected call not found.
E Expected: PostgresConnector('localhost', 'password', 'user', 5432, 'database', 'SELECT FROM table')
E Actual: PostgresConnector('localhost', 'password', 'localhost', 5432, 'database', 'SELECT FROM table')
Describe the bug @coderabbit identified an issue with the mock postgres test:
However, making these changes causes a test failure elsewhere and it is not clear why. To Reproduce Steps to reproduce the behavior:
Expected behavior All tests should pass, instead getting the following error:
E AssertionError: expected call not found. E Expected: PostgresConnector('localhost', 'password', 'user', 5432, 'database', 'SELECT FROM table') E Actual: PostgresConnector('localhost', 'password', 'localhost', 5432, 'database', 'SELECT FROM table')