Skip to content

Commit

Permalink
added back test
Browse files Browse the repository at this point in the history
  • Loading branch information
fzumstein committed Dec 8, 2024
1 parent d7c753a commit 841ee8a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_router_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,19 @@ def test_get_manifest_prod(mocker):
)


def test_empty_function_namespace(mocker):
def test_empty_function_namespace_prod(mocker):
mocker.patch.object(settings, "environment", "prod")
mocker.patch.object(settings, "functions_namespace", "")
response = client.get(f"{settings.app_path}/manifest")
assert "Functions.Namespace" not 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


def test_entraid_auth_deactivated():
response = client.get(f"{settings.app_path}/manifest")
assert "<WebApplicationInfo>" not in response.text
Expand Down

0 comments on commit 841ee8a

Please sign in to comment.