Skip to content

Commit

Permalink
fixed cli arg
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog committed Sep 20, 2024
1 parent fd23886 commit e1c1e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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

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 e1c1e25

Please sign in to comment.