Skip to content

Commit

Permalink
🔊 Updated logger warning
Browse files Browse the repository at this point in the history
  • Loading branch information
angelika233 committed Dec 6, 2023
1 parent f7de232 commit 8f447aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/integration/test_sap_rfc.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,14 @@ def test___build_pandas_filter_query_v2():
def test_default_credentials_warning_SAPRFC(caplog):
_ = SAPRFC()
assert (
"Your credentials will use DEV environment. If you would like to use different one - please specified it in 'sap_credentials' variable inside the flow."
"Your credentials will use DEV environment. If you would like to use different one - please specified it."
in caplog.text
)


def test_default_credentials_warning_SAPRFCV2(caplog):
_ = SAPRFCV2()
assert (
"Your credentials will use DEV environment. If you would like to use different one - please specified it in 'sap_credentials' variable inside the flow."
"Your credentials will use DEV environment. If you would like to use different one - please specified it."
in caplog.text
)
2 changes: 1 addition & 1 deletion viadot/sources/sap_rfc.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def __init__(
if credentials is None:
raise CredentialError("Missing credentials.")
logger.warning(
"Your credentials will use DEV environment. If you would like to use different one - please specified it in 'sap_credentials' variable inside the flow."
"Your credentials will use DEV environment. If you would like to use different one - please specified it."
)

super().__init__(*args, credentials=credentials, **kwargs)
Expand Down

0 comments on commit 8f447aa

Please sign in to comment.