(num: int, cmd: tuple[str, ...], caplog, port)
| 212 | ), |
| 213 | ) |
| 214 | def test_num_workers(num: int, cmd: tuple[str, ...], caplog, port): |
| 215 | command = ["fake.server.app", *cmd, f"-p={port}"] |
| 216 | lines = capture(command, caplog) |
| 217 | |
| 218 | if num == 1: |
| 219 | expected = "mode: production, single worker" |
| 220 | else: |
| 221 | expected = f"mode: production, w/ {num} workers" |
| 222 | |
| 223 | assert expected in lines |
| 224 | |
| 225 | |
| 226 | @pytest.mark.parametrize("cmd", ("--debug",)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…