Skip to content

Commit 5d61d81

Browse files
Gavin AguiarGavin Aguiar
authored andcommitted
Moved constants to test dir
1 parent 65d131e commit 5d61d81

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

azure_functions_worker/constants.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
SHARED_MEMORY_DATA_TRANSFER = "SharedMemoryDataTransfer"
1313
FUNCTION_DATA_CACHE = "FunctionDataCache"
1414

15-
# Debug Flags
16-
PYAZURE_WEBHOST_DEBUG = "PYAZURE_WEBHOST_DEBUG"
17-
1815
# Platform Environment Variables
1916
AZURE_WEBJOBS_SCRIPT_ROOT = "AzureWebJobsScriptRoot"
2017
CONTAINER_NAME = "CONTAINER_NAME"
@@ -51,7 +48,3 @@
5148
SCRIPT_FILE_NAME = "function_app.py"
5249

5350
PYTHON_LANGUAGE_RUNTIME = "python"
54-
55-
# CI test constants
56-
CONSUMPTION_DOCKER_TEST = "false"
57-
DEDICATED_DOCKER_TEST = "false"

tests/utils/constants.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@
1111
# E2E Integration Flags and Configurations
1212
PYAZURE_INTEGRATION_TEST = "PYAZURE_INTEGRATION_TEST"
1313
PYAZURE_WORKER_DIR = "PYAZURE_WORKER_DIR"
14+
15+
# Debug Flags
16+
PYAZURE_WEBHOST_DEBUG = "PYAZURE_WEBHOST_DEBUG"
17+
18+
# CI test constants
19+
CONSUMPTION_DOCKER_TEST = "false"
20+
DEDICATED_DOCKER_TEST = "false"

tests/utils/testutils.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,13 @@
4242
from azure_functions_worker.bindings.shared_memory_data_transfer \
4343
import SharedMemoryConstants as consts
4444
from azure_functions_worker.constants import (
45-
PYAZURE_WEBHOST_DEBUG,
4645
FUNCTIONS_WORKER_SHARED_MEMORY_DATA_TRANSFER_ENABLED,
47-
UNIX_SHARED_MEMORY_DIRECTORIES, CONSUMPTION_DOCKER_TEST,
48-
DEDICATED_DOCKER_TEST
46+
UNIX_SHARED_MEMORY_DIRECTORIES
4947
)
5048
from azure_functions_worker.utils.common import is_envvar_true, get_app_setting
5149
from tests.utils.constants import PYAZURE_WORKER_DIR, \
52-
PYAZURE_INTEGRATION_TEST, PROJECT_ROOT, WORKER_CONFIG
50+
PYAZURE_INTEGRATION_TEST, PROJECT_ROOT, WORKER_CONFIG, \
51+
CONSUMPTION_DOCKER_TEST, DEDICATED_DOCKER_TEST, PYAZURE_WEBHOST_DEBUG
5352
from tests.utils.testutils_docker import WebHostConsumption
5453

5554
TESTS_ROOT = PROJECT_ROOT / 'tests'

0 commit comments

Comments
 (0)