Skip to content

Commit a42bba5

Browse files
fix failing tests; pin click version
1 parent afcbafe commit a42bba5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
python_requires=">=3.9, <4",
3333
install_requires=[
3434
"chardet",
35-
"click>=7.1.1",
35+
"click>=7.1.1,<8.2",
3636
"click_plugins>=1.1.1",
3737
"colorama>=0.4.3",
3838
"keyring==18.0.1",

tests/test_bulk.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def test_generate_template_cmd_factory_returns_expected_command():
4545
assert template.name == "generate-template"
4646
assert len(template.params) == 2
4747
assert template.params[0].name == "cmd"
48-
assert template.params[0].type.choices == ["add", "remove"]
48+
assert "add" in template.params[0].type.choices
49+
assert "remove" in template.params[0].type.choices
4950
assert template.params[1].name == "path"
5051

5152

@@ -63,7 +64,8 @@ def test_generate_template_cmd_factory_when_using_defaults_returns_expected_comm
6364
assert template.name == "generate-template"
6465
assert len(template.params) == 2
6566
assert template.params[0].name == "cmd"
66-
assert template.params[0].type.choices == ["add", "remove"]
67+
assert "add" in template.params[0].type.choices
68+
assert "remove" in template.params[0].type.choices
6769
assert template.params[1].name == "path"
6870

6971

0 commit comments

Comments
 (0)