Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix tests for new option parsing #11

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions projects/fal/tests/test_stability.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def served(name: str):
op = served.options
assert fastapi_in(op), "fastapi not in served environment"
assert op.gateway["serve"], "serve not in served gateway"
assert op.gateway["max_concurrency"] == 8, "max_concurrency not in served gateway"
assert op.host["max_concurrency"] == 8, "max_concurrency not in served gateway"
assert op.host["keep_alive"] == 10, "keep_alive not in served host"
assert op.host["machine_type"] == "M", "machine_type not in served host"

Expand All @@ -524,7 +524,7 @@ def served(name: str):
op = unserved.options
assert fastapi_in(op), "fastapi MUST stay after removing serve"
assert not op.gateway["serve"], "serve STILL set in unserved gateway"
assert op.gateway["max_concurrency"] == 8, "max_concurrency not in unserved gateway"
assert op.host["max_concurrency"] == 8, "max_concurrency not in unserved gateway"
assert op.host["keep_alive"] == 10, "keep_alive not in unserved host"
assert op.host["machine_type"] == "M", "machine_type not in unserved host"

Expand All @@ -533,6 +533,6 @@ def served(name: str):
op = local.options
assert fastapi_in(op), "fastapi not in local environment"
assert op.gateway["serve"], "serve not in local gateway"
assert op.gateway["max_concurrency"] == 8, "max_concurrency not in local gateway"
assert "max_concurrency" not in op.host, "max_concurrency set in local gateway"
assert "keep_alive" not in op.host, "keep_alive set in local host"
assert "machine_type" not in op.host, "machine_type set in local host"