Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(notifiers): 🚚 move notifiers #525

Merged
merged 1 commit into from
Feb 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions flathunter/heartbeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
from flathunter.abstract_notifier import Notifier
from flathunter.config import YamlConfig
from flathunter.logging import logger
from flathunter.sender_apprise import SenderApprise
from flathunter.sender_mattermost import SenderMattermost
from flathunter.sender_slack import SenderSlack
from flathunter.sender_telegram import SenderTelegram
from flathunter.notifiers import SenderApprise, SenderMattermost, SenderTelegram, SenderSlack
from flathunter.exceptions import HeartbeatException


Expand Down
5 changes: 5 additions & 0 deletions flathunter/notifiers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""Package for notifiers."""
from .sender_apprise import SenderApprise
from .sender_mattermost import SenderMattermost
from .sender_slack import SenderSlack
from .sender_telegram import SenderTelegram
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions flathunter/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
from flathunter.default_processors import Filter
from flathunter.default_processors import LambdaProcessor
from flathunter.default_processors import CrawlExposeDetails
from flathunter.sender_mattermost import SenderMattermost
from flathunter.sender_apprise import SenderApprise
from flathunter.sender_telegram import SenderTelegram
from flathunter.sender_slack import SenderSlack
from flathunter.notifiers import SenderMattermost, SenderTelegram, SenderApprise, SenderSlack
from flathunter.gmaps_duration_processor import GMapsDurationProcessor
from flathunter.idmaintainer import SaveAllExposesProcessor
from flathunter.abstract_processor import Processor
Expand Down
2 changes: 1 addition & 1 deletion test/sender/test_apprise.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import requests_mock

from flathunter.sender_apprise import SenderApprise
from flathunter.notifiers import SenderApprise


class SenderAppriseTest(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion test/sender/test_mattermost.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import requests_mock

from flathunter.sender_mattermost import SenderMattermost
from flathunter.notifiers import SenderMattermost
from flathunter.config import YamlConfig


Expand Down
2 changes: 1 addition & 1 deletion test/sender/test_slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import requests_mock

from flathunter.sender_slack import SenderSlack
from flathunter.notifiers import SenderSlack
from flathunter.config import YamlConfig


Expand Down
2 changes: 1 addition & 1 deletion test/sender/test_telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from test.utils.request_matcher import RequestCounter
from test.utils.config import StringConfig

from flathunter.sender_telegram import SenderTelegram
from flathunter.notifiers import SenderTelegram


class SenderTelegramTest(unittest.TestCase):
Expand Down
Loading