Skip to content

Commit

Permalink
double dash args
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog committed Sep 20, 2024
1 parent e1c1e25 commit 1771f57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/config_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ class TestMaxConcurrent(object):
def test_negative_max_concurrent(self, monkeypatch, params):
monkeypatch.setattr(os, "cpu_count", Mock(return_value=2))

cli_args = ["--bg-host", "the_host", "-max-concurrent", "-1"]
cli_args = ["--bg-host", "the_host", "--max-concurrent", "-1"]
config = load_config(cli_args=cli_args)

assert config["max_concurrent"] == 8
assert config["max_concurrent"] == 6

def test_positive_max_concurrent(self, monkeypatch, params):
monkeypatch.setattr(os, "cpu_count", Mock(return_value=2))

cli_args = ["--bg-host", "the_host", "-max-concurrent", "3"]
cli_args = ["--bg-host", "the_host", "--max-concurrent", "3"]
config = load_config(cli_args=cli_args)

assert config["max_concurrent"] == 3
Expand Down

0 comments on commit 1771f57

Please sign in to comment.