Skip to content

Commit

Permalink
Updated wording for S106 inlines
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzbrand committed Oct 23, 2024
1 parent e54ac24 commit 165fac8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion eventstore/tests/test_hcs_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class UpdateTurnContactTaskTest(TestCase):
@responses.activate
@override_settings(HC_TURN_URL="https://turn", HC_TURN_TOKEN="token") # noqa: S106 - Its OK to hardcode passwords in tests
@override_settings(HC_TURN_URL="https://turn", HC_TURN_TOKEN="token") # noqa: S106 - Fake password/token for test purposes
def test_update_turn_contact_task(self):
responses.add(
responses.PATCH,
Expand Down
12 changes: 6 additions & 6 deletions eventstore/tests/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,13 +596,13 @@ def setUp(self):
@responses.activate
@override_settings(
TURN_URL="https://turn/",
TURN_TOKEN="token", # noqa: S106 - Its OK to hardcode passwords in tests
TURN_TOKEN="token", # noqa: S106 - Fake password/token for test purposes
EXTERNAL_REGISTRATIONS_V2=True,
SLACK_CHANNEL="test-slack",
SLACK_URL="http://slack.com",
RAPIDPRO_URL="rapidpro",
RAPIDPRO_TOKEN="rapidpro-token", # noqa: S106 - Its OK to hardcode passwords in tests
SLACK_TOKEN="slack-token", # noqa: S106 - Its OK to hardcode passwords in tests
RAPIDPRO_TOKEN="rapidpro-token", # noqa: S106 - Fake password/token for test purposes
SLACK_TOKEN="slack-token", # noqa: S106 - Fake password/token for test purposes
)
def test_post_random_contacts_to_slack_channel(self):
responses.add(
Expand Down Expand Up @@ -678,7 +678,7 @@ def test_post_random_contacts_to_slack_channel(self):
)

@responses.activate
@override_settings(TURN_URL="https://turn/", TURN_TOKEN="token") # noqa: S106 - Its OK to hardcode passwords in tests
@override_settings(TURN_URL="https://turn/", TURN_TOKEN="token") # noqa: S106 - Fake password/token for test purposes
def test_get_random_contact(self):
responses.add(
responses.GET,
Expand Down Expand Up @@ -711,7 +711,7 @@ def setUp(self):
tasks.rapidpro = TembaClient("textit.in", "test-token")

@responses.activate
@override_settings(TURN_URL="http://turn/", TURN_TOKEN="token") # noqa: S106 - Its OK to hardcode passwords in tests
@override_settings(TURN_URL="http://turn/", TURN_TOKEN="token") # noqa: S106 - Fake password/token for test purposes
def test_get_turn_profile_link(self):
responses.add(
responses.GET,
Expand Down Expand Up @@ -772,7 +772,7 @@ def setUp(self):
]

@responses.activate
@override_settings(SLACK_URL="http://slack.com", SLACK_TOKEN="slack_token") # noqa: S106 - Its OK to hardcode passwords in tests
@override_settings(SLACK_URL="http://slack.com", SLACK_TOKEN="slack_token") # noqa: S106 - Fake password/token for test purposes
def test_send_slack_message(self):
responses.add(
responses.POST,
Expand Down

0 comments on commit 165fac8

Please sign in to comment.