Skip to content

Commit

Permalink
Merge pull request #525 from veldhaenchen/refactor_notifiers
Browse files Browse the repository at this point in the history
feat(notifiers):  🚚 move notifiers
  • Loading branch information
codders authored Feb 4, 2024
2 parents 6677f4a + d516fd9 commit 9c23f01
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 12 deletions.
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.
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

0 comments on commit 9c23f01

Please sign in to comment.