Skip to content

Commit

Permalink
fix: removing unecessary subtype in connectors initialization in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas authored and Thomas65535 committed Sep 5, 2024
1 parent c953ff9 commit 4fd07de
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 26 deletions.
20 changes: 0 additions & 20 deletions tests/core/test_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
SmartLeadsF = lambda: Connector(
name="SmartLeads",
type=ConnectorType.Other,
subtype="smartleads",
description=DESCRIPTION,
url="https://www.smartleads.test/",
actions=[
Expand Down Expand Up @@ -95,7 +94,6 @@ def test_action_name_constraint():
Connector(
name="SmartLeads",
type=ConnectorType.Other,
subtype="smartleads",
description=DESCRIPTION,
url="https://www.smartleads.test/",
actions=[
Expand All @@ -121,7 +119,6 @@ def test_action_pull_profile_list_only_with_trigger_type_pull():
Connector(
name="SmartLeads",
type=ConnectorType.Other,
subtype="smartleads",
description=DESCRIPTION,
url="https://www.smartleads.test/",
actions=[
Expand Down Expand Up @@ -151,7 +148,6 @@ def test_action_pull_job_list_only_with_trigger_type_pull():
Connector(
name="SmartLeads",
type=ConnectorType.Other,
subtype="smartleads",
description=DESCRIPTION,
url="https://www.smartleads.test/",
actions=[
Expand Down Expand Up @@ -181,7 +177,6 @@ def test_action_pull_application_list_only_with_trigger_type_pull():
Connector(
name="SmartLeads",
type=ConnectorType.Other,
subtype="smartleads",
description=DESCRIPTION,
url="https://www.smartleads.test/",
actions=[
Expand Down Expand Up @@ -259,7 +254,6 @@ def test_origin_warehouse_failure():
connector = Connector(
name="SmartLeads",
type=ConnectorType.Other,
subtype="smartleads",
description=DESCRIPTION,
url="https://www.smartleads.test/",
actions=[
Expand Down Expand Up @@ -291,7 +285,6 @@ def test_origin_not_readable_failure():
Connector(
name="SmartLeads",
type=ConnectorType.Other,
subtype="smartleads",
description=DESCRIPTION,
url="https://www.smartleads.test/",
actions=[
Expand All @@ -316,7 +309,6 @@ def test_target_warehouse_failure():
connector = Connector(
name="SmartLeads",
type=ConnectorType.Other,
subtype="smartleads",
description=DESCRIPTION,
url="https://www.smartleads.test/",
actions=[
Expand Down Expand Up @@ -348,7 +340,6 @@ def test_target_not_writable_failure():
Connector(
name="SmartLeads",
type=ConnectorType.Other,
subtype="smartleads",
description=DESCRIPTION,
url="https://www.smartleads.test/",
actions=[
Expand Down Expand Up @@ -514,7 +505,6 @@ def smarter_format(user):
EvenSmarterLeads = Connector(
name="SmartLeads",
type=ConnectorType.Other,
subtype="smartleads",
description=DESCRIPTION,
url="https://www.smartleads.test/",
actions=[
Expand Down Expand Up @@ -599,7 +589,6 @@ def failing_logic(user):
FailingSmartLeads = Connector(
name="SmartLeads",
type=ConnectorType.Other,
subtype="smartleads",
description=DESCRIPTION,
url="https://www.smartleads.test/",
actions=[
Expand Down Expand Up @@ -746,7 +735,6 @@ def callback(origin_parameters, target_parameters, events, written_items) -> Non
SmartLeads = Connector(
name="SmartLeads",
type=ConnectorType.Other,
subtype="smartleads",
description=DESCRIPTION,
url="https://www.smartleads.test/",
actions=[
Expand Down Expand Up @@ -791,7 +779,6 @@ def callback(origin_parameters, target_parameters, events, written_items) -> Non
SmartLeads = Connector(
name="SmartLeads",
type=ConnectorType.Other,
subtype="smartleads",
description=DESCRIPTION,
url="https://www.smartleads.test/",
actions=[
Expand Down Expand Up @@ -1292,7 +1279,6 @@ def test_connector_based_on_simple():
base=SmartLeads,
name="SmartLeadsCopy",
type=ConnectorType.Other,
subtype="smartleadscopy",
description="SmartLeadsCopy",
url="Some URL",
)
Expand All @@ -1316,7 +1302,6 @@ def test_connector_based_on_action_override():
base=SmartLeads,
name="SmartLeadsCopy",
type=ConnectorType.Other,
subtype="smartleadscopy",
description="SmartLeadsCopy",
url="Some URL",
with_actions=[
Expand Down Expand Up @@ -1362,7 +1347,6 @@ def test_connector_based_on_new_action():
base=SmartLeads,
name="SmartLeadsCopy",
type=ConnectorType.Other,
subtype="smartleadscopy",
description="SmartLeadsCopy",
url="Some URL",
with_actions=[
Expand Down Expand Up @@ -1417,7 +1401,6 @@ def new_event_parser(*args, **kwargs):
base=SmartLeads,
name="SmartLeadsCopy",
type=ConnectorType.Other,
subtype="smartleadscopy",
description="SmartLeadsCopy",
url="Some URL",
with_parameters_override=[
Expand Down Expand Up @@ -1487,7 +1470,6 @@ def new_event_parser(*args, **kwargs):
base=SmartLeads,
name="SmartLeadsCopy",
type=ConnectorType.Other,
subtype="smartleadscopy",
description="SmartLeadsCopy",
url="Some URL",
with_parameters_override=[
Expand Down Expand Up @@ -1631,7 +1613,6 @@ def new_format(*args, **kwargs):
base=SmartLeads,
name="SmartLeadsCopy",
type=ConnectorType.Other,
subtype="smartleadscopy",
description="SmartLeadsCopy",
url="Some URL",
with_parameters_override=[
Expand Down Expand Up @@ -1663,7 +1644,6 @@ def new_format(*args, **kwargs):
base=SmartLeads,
name="SmartLeadsCopy",
type=ConnectorType.Other,
subtype="smartleadscopy",
description="SmartLeadsCopy",
url="Some URL",
with_parameters_override=[
Expand Down
3 changes: 0 additions & 3 deletions tests/core/test_documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
SmartLeads = Connector(
name="SmartLeads",
type=ConnectorType.Other,
subtype="smartleads",
description=DESCRIPTION,
url="https://www.smartleads.test/",
actions=[
Expand Down Expand Up @@ -644,7 +643,6 @@ def test_documentation_connector_directory_not_found(caplog, connectors_director
NameMismatchSmartLeads = Connector(
name=mismatch_name,
type=ConnectorType.Other,
subtype="noconnectordir",
description=DESCRIPTION,
url="https://www.smartleads.test/",
actions=[
Expand Down Expand Up @@ -718,7 +716,6 @@ def test_documentation_fails_if_connector_not_already_listed_in_root_readme(
NotListed = Connector(
name=name,
type=ConnectorType.Other,
subtype="notlistedinrootreadme",
description=DESCRIPTION,
url="https://not.listed.in.root.test/",
actions=[
Expand Down
1 change: 0 additions & 1 deletion tests/core/test_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
SmartLeads = Connector(
name="SmartLeads",
type=ConnectorType.Other,
subtype="smartleads",
description=DESCRIPTION,
url="https://www.smartleads.test/",
actions=[
Expand Down
2 changes: 0 additions & 2 deletions tests/core/test_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
SmartLeads = Connector(
name="SmartLeads",
type=ConnectorType.Other,
subtype="smartleads",
description="Test Connector for seamless users to leads integration",
url="https://www.smartleads.test/",
actions=[
Expand All @@ -60,7 +59,6 @@
LocalUsers = Connector(
name="LocalUsers",
type=ConnectorType.Other,
subtype="localusers",
description="Local users connector",
url="https://www.localusers.test/",
actions=[],
Expand Down

0 comments on commit 4fd07de

Please sign in to comment.