This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 9babb065d0 Fix too strict tests for Salesfore hook (#34148)
9babb065d0 is described below
commit 9babb065d077e89f779aaee07f0b673835f5700c
Author: Jarek Potiuk <[email protected]>
AuthorDate: Thu Sep 7 01:16:07 2023 +0200
Fix too strict tests for Salesfore hook (#34148)
The tests for Salescforce hooh were too strict - they were
expecting a specific version and when new salesforce-simple library
has been released (1.12.5), the version changed - the tests
started to fail.
This PR fixes the tests by accepting any version.
---
tests/providers/salesforce/hooks/test_salesforce.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/providers/salesforce/hooks/test_salesforce.py
b/tests/providers/salesforce/hooks/test_salesforce.py
index bb5ed82377..b670856a4a 100644
--- a/tests/providers/salesforce/hooks/test_salesforce.py
+++ b/tests/providers/salesforce/hooks/test_salesforce.py
@@ -18,6 +18,7 @@
from __future__ import annotations
import os
+from unittest import mock
from unittest.mock import Mock, patch
import pandas as pd
@@ -484,7 +485,7 @@ class TestSalesforceHook:
session=None,
session_id=None,
username=None,
- version="52.0",
+ version=mock.ANY,
)
@patch("airflow.providers.salesforce.hooks.salesforce.Salesforce")
@@ -513,7 +514,7 @@ class TestSalesforceHook:
session=None,
session_id=None,
username=None,
- version="52.0",
+ version=mock.ANY,
)
@patch(