Skip to content

Commit

Permalink
remove function from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Caha committed May 28, 2024
1 parent 9bdb041 commit f27e0c0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
License: MIT
"""

import pytest

from config import ConfigError, config, get_ignored_tables, validate_config
from smtp_functions import can_send_email

from .conftest import _reset_config

Expand Down Expand Up @@ -255,9 +255,7 @@ def test_get_ignored_tables():
def test_config_notification_setup():
_reset_config()

# no NOTIFICATIONS set should pass but cannot send email
validate_config(config)
assert can_send_email(config) is False

# incomplete setting
config.update(
Expand Down Expand Up @@ -347,6 +345,3 @@ def test_config_notification_setup():

with pytest.raises(ConfigError, match="Config SMTP Error"):
validate_config(config)

# notifications are set, emails can be send - but this config was not validated, as it would be in real run
assert can_send_email(config)

0 comments on commit f27e0c0

Please sign in to comment.