Skip to content

Commit

Permalink
test: fix unit test (#1594)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgetx authored Sep 12, 2024
1 parent 96b5480 commit 1df03f3
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,6 @@ def test_known_cases(self, bk_module, bk_deployment, command):
assert web.command is None
assert web.args is None

def test_proc_with_no_replicas(self, bk_deployment):
json_data = {"language": "python", "processes": {"web": {"command": "start"}}}
controller = DeploymentDeclarativeController(bk_deployment)
result = controller.perform_action(desc=validate_desc(DeploymentDescSLZ, json_data))

assert result.processes["web"].replicas is None

def test_proc_with_fixed_replicas(self, bk_deployment):
json_data = {"language": "python", "processes": {"web": {"command": "start", "replicas": 3}}}
controller = DeploymentDeclarativeController(bk_deployment)
result = controller.perform_action(desc=validate_desc(DeploymentDescSLZ, json_data))

assert result.processes["web"].replicas == 3


class TestEnvVariablesField:
def test_invalid_input(self, bk_deployment):
Expand Down

0 comments on commit 1df03f3

Please sign in to comment.