Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Victoria Hall committed Dec 18, 2024
1 parent 23ea45c commit 584e8e4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
5 changes: 2 additions & 3 deletions tests/emulator_tests/test_servicebus_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,12 @@ class TestServiceBusFunctionsStein(TestServiceBusFunctions):
@classmethod
def get_script_dir(cls):
return testutils.EMULATOR_TESTS_FOLDER / 'servicebus_functions' / \
'servicebus_functions_stein'
'servicebus_functions_stein'


class TestServiceBusFunctionsSteinGeneric(TestServiceBusFunctions):

@classmethod
def get_script_dir(cls):
return testutils.EMULATOR_TESTS_FOLDER / 'servicebus_functions' / \
'servicebus_functions_stein' / \
'generic'
'servicebus_functions_stein' / 'generic'
16 changes: 8 additions & 8 deletions tests/endtoend/test_worker_process_count_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@


@unittest.skipIf(is_envvar_true(DEDICATED_DOCKER_TEST)
or is_envvar_true(CONSUMPTION_DOCKER_TEST),
"Tests are flaky when running on Docker")
or is_envvar_true(CONSUMPTION_DOCKER_TEST),
"Tests are flaky when running on Docker")
class TestWorkerProcessCount(testutils.WebHostTestCase):
"""Test the Http Trigger with setting up the python worker process count
to 2. this test will check if both requests should be processed at the
Expand Down Expand Up @@ -71,8 +71,8 @@ def http_req(res_num):


@unittest.skipIf(is_envvar_true(DEDICATED_DOCKER_TEST)
or is_envvar_true(CONSUMPTION_DOCKER_TEST),
"Tests are flaky when running on Docker")
or is_envvar_true(CONSUMPTION_DOCKER_TEST),
"Tests are flaky when running on Docker")
class TestWorkerProcessCountStein(TestWorkerProcessCount):
@classmethod
def get_script_dir(cls):
Expand All @@ -81,8 +81,8 @@ def get_script_dir(cls):


@unittest.skipIf(is_envvar_true(DEDICATED_DOCKER_TEST)
or is_envvar_true(CONSUMPTION_DOCKER_TEST),
"Tests are flaky when running on Docker")
or is_envvar_true(CONSUMPTION_DOCKER_TEST),
"Tests are flaky when running on Docker")
class TestWorkerProcessCountWithBlueprintStein(TestWorkerProcessCount):
@classmethod
def get_script_dir(cls):
Expand All @@ -91,8 +91,8 @@ def get_script_dir(cls):


@unittest.skipIf(is_envvar_true(DEDICATED_DOCKER_TEST)
or is_envvar_true(CONSUMPTION_DOCKER_TEST),
"Tests are flaky when running on Docker")
or is_envvar_true(CONSUMPTION_DOCKER_TEST),
"Tests are flaky when running on Docker")
class TestWorkerProcessCountWithBlueprintDiffDirStein(TestWorkerProcessCount):
@classmethod
def get_script_dir(cls):
Expand Down
6 changes: 3 additions & 3 deletions tests/extension_tests/http_v2_tests/test_http_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
import requests
from tests.utils import testutils
from azure_functions_worker.utils.common import is_envvar_true
from tests.utils.constants import CONSUMPTION_DOCKER_TEST,DEDICATED_DOCKER_TEST
from tests.utils.constants import CONSUMPTION_DOCKER_TEST, DEDICATED_DOCKER_TEST

from azure_functions_worker.constants import PYTHON_ENABLE_INIT_INDEXING

REQUEST_TIMEOUT_SEC = 5


@unittest.skipIf(is_envvar_true(DEDICATED_DOCKER_TEST)
or is_envvar_true(CONSUMPTION_DOCKER_TEST),
"Tests are flaky when running on Docker")
or is_envvar_true(CONSUMPTION_DOCKER_TEST),
"Tests are flaky when running on Docker")
@unittest.skipIf(sys.version_info.minor < 8, "HTTPv2"
"is only supported for 3.8+.")
class TestHttpFunctionsWithInitIndexing(testutils.WebHostTestCase):
Expand Down

0 comments on commit 584e8e4

Please sign in to comment.