8000 Force click<8.0.0 by SharpEdgeMarshall · Pull Request #1562 · cookiecutter/cookiecutter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Force click<8.0.0 #1562

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
requirements = [
'binaryornot>=0.4.4',
'Jinja2>=2.7,<4.0.0',
'click>=7.0',
'click>=7.0,<8.0.0',
'pyyaml>=5.3.1',
'jinja2-time>=0.2.0',
'python-slugify>=4.0.0',
Expand Down
11 changes: 11 additions & 0 deletions tests/test_read_user_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,17 @@ def test_should_call_prompt_with_process_json(mocker):
)


def test_should_not_call_process_json_default_value(mocker, monkeypatch):
"""Make sure that `process_json` is not called when using default value."""
mock_process_json = mocker.patch('cookiecutter.prompt.process_json', autospec=True)

runner = click.testing.CliRunner()
with runner.isolation(input="\n"):
read_user_dict('name', {'project_slug': 'pytest-plugin'})

mock_process_json.assert_not_called()


def test_read_user_dict_default_value(mocker):
"""Make sure that `read_user_dict` returns the default value.

Expand Down
0