Skip to content

Commit

Permalink
feat: moved automation into discord_analyzer package!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed Jul 2, 2024
1 parent af72605 commit 2c367cb
Show file tree
Hide file tree
Showing 27 changed files with 28 additions and 28 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import logging
from typing import Any

from automation.utils.automation_base import AutomationBase
from automation.utils.model import AutomationDB
from discord_analyzer.automation.utils.automation_base import AutomationBase
from discord_analyzer.automation.utils.model import AutomationDB
from pybars import Compiler
from tc_messageBroker.rabbit_mq.event import Event
from tc_messageBroker.rabbit_mq.queue import Queue
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion discord_analyzer/publish_on_success.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging

from automation.automation_workflow import AutomationWorkflow
from discord_analyzer.automation.automation_workflow import AutomationWorkflow
from tc_messageBroker.rabbit_mq.event import Event
from tc_messageBroker.rabbit_mq.queue import Queue
from discord_analyzer.utils.get_guild_utils import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from automation.utils.automation_base import AutomationBase
from discord_analyzer.automation.utils.automation_base import AutomationBase

from .utils.analyzer_setup import launch_db_access

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import datetime, timedelta

from automation.utils.automation_base import AutomationBase
from discord_analyzer.automation.utils.automation_base import AutomationBase

from .utils.analyzer_setup import launch_db_access

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import datetime, timedelta

from automation.utils.automation_base import AutomationBase
from discord_analyzer.automation.utils.automation_base import AutomationBase

from .utils.analyzer_setup import launch_db_access

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import datetime, timedelta

from automation.utils.automation_base import AutomationBase
from discord_analyzer.automation.utils.automation_base import AutomationBase

from .utils.analyzer_setup import launch_db_access

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import datetime, timedelta

from automation.utils.automation_base import AutomationBase
from discord_analyzer.automation.utils.automation_base import AutomationBase

from .utils.analyzer_setup import launch_db_access

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import datetime, timedelta

from automation.utils.automation_base import AutomationBase
from discord_analyzer.automation.utils.automation_base import AutomationBase

from .utils.analyzer_setup import launch_db_access

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import datetime, timedelta

from automation.utils.automation_base import AutomationBase
from discord_analyzer.automation.utils.automation_base import AutomationBase

from .utils.analyzer_setup import launch_db_access

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_automation_db_load_from_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import unittest
from datetime import datetime, timedelta

from automation.utils.model import AutomationDB
from discord_analyzer.automation.utils.model import AutomationDB
from dotenv import load_dotenv
from discord_analyzer.utils.mongo import MongoSingleton

Expand Down
4 changes: 2 additions & 2 deletions tests/integration/test_automation_db_save_to_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import unittest
from datetime import datetime, timezone

from automation.utils.interfaces import Automation
from automation.utils.model import AutomationDB
from discord_analyzer.automation.utils.interfaces import Automation
from discord_analyzer.automation.utils.model import AutomationDB
from dotenv import load_dotenv
from discord_analyzer.utils.mongo import MongoSingleton

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime, timedelta

from automation.automation_workflow import AutomationWorkflow
from automation.utils.interfaces import (
from discord_analyzer.automation.automation_workflow import AutomationWorkflow
from discord_analyzer.automation.utils.interfaces import (
Automation,
AutomationAction,
AutomationReport,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime, timedelta

from automation.automation_workflow import AutomationWorkflow
from automation.utils.interfaces import (
from discord_analyzer.automation.automation_workflow import AutomationWorkflow
from discord_analyzer.automation.utils.interfaces import (
Automation,
AutomationAction,
AutomationReport,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime, timedelta

from automation.automation_workflow import AutomationWorkflow
from automation.utils.interfaces import (
from discord_analyzer.automation.automation_workflow import AutomationWorkflow
from discord_analyzer.automation.utils.interfaces import (
Automation,
AutomationAction,
AutomationReport,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime, timedelta

from automation.automation_workflow import AutomationWorkflow
from automation.utils.interfaces import (
from discord_analyzer.automation.automation_workflow import AutomationWorkflow
from discord_analyzer.automation.utils.interfaces import (
Automation,
AutomationAction,
AutomationReport,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from datetime import datetime, timedelta

from automation.utils.interfaces import (
from discord_analyzer.automation.utils.interfaces import (
Automation,
AutomationAction,
AutomationReport,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from datetime import datetime, timedelta

from automation.utils.interfaces import (
from discord_analyzer.automation.utils.interfaces import (
Automation,
AutomationAction,
AutomationReport,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_automation_class.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest
from datetime import datetime

from automation.utils.interfaces import (
from discord_analyzer.automation.utils.interfaces import (
Automation,
AutomationAction,
AutomationReport,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_automation_get_handler_type.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from automation.automation_workflow import AutomationWorkflow
from discord_analyzer.automation.automation_workflow import AutomationWorkflow


class TestGetHandlerType(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_automation_trigger_action_report.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from automation.utils.interfaces import (
from discord_analyzer.automation.utils.interfaces import (
AutomationAction,
AutomationReport,
AutomationTrigger,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_compile_message.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from automation.automation_workflow import AutomationWorkflow
from discord_analyzer.automation.automation_workflow import AutomationWorkflow


class CompileTemplateMessage(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_engagement_notifier_subtract_users.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from automation.utils.automation_base import AutomationBase
from discord_analyzer.automation.utils.automation_base import AutomationBase


def test_subtract_users_empty_data():
Expand Down

0 comments on commit 2c367cb

Please sign in to comment.