Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fzumstein committed Dec 8, 2024
1 parent 62fc753 commit c75298f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/test_router_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,11 @@ def test_get_manifest_prod(mocker):
)


def test_empty_function_namespace_prod(mocker):
def test_empty_function_namespace(mocker):
mocker.patch.object(settings, "environment", "prod")
mocker.patch.object(settings, "functions_namespace", "")
response = client.get(f"{settings.app_path}/manifest")
assert '<bt:String id="Functions.Namespace" DefaultValue="" />' in response.text


def test_empty_function_namespace_nonprod(mocker):
mocker.patch.object(settings, "functions_namespace", "")
response = client.get(f"{settings.app_path}/manifest")
assert '<bt:String id="Functions.Namespace" DefaultValue="QA" />' in response.text
assert "Functions.Namespace" not in response.text


def test_entraid_auth_deactivated():
Expand Down

0 comments on commit c75298f

Please sign in to comment.