Skip to content

Commit

Permalink
Fix the compatibility with latest cookiecutter (#14)
Browse files Browse the repository at this point in the history
* Fix the compatibility with latest cookiecutter

* Fix the linting issue
  • Loading branch information
RyanSiu1995 committed Jul 14, 2022
1 parent 5e7bdcd commit df78dd2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .pylintrc
Expand Up @@ -25,6 +25,9 @@ disable=bad-continuation,
too-many-arguments,
unused-argument,
wrong-import-order,
consider-using-f-string,
consider-using-with,
unspecified-encoding


[REPORTS]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
@@ -1,4 +1,4 @@
click>=6.7
cookiecutter>=1.6.0
cookiecutter~=1.7.3
pyyaml>=3.12
requests>=2.13.0
5 changes: 3 additions & 2 deletions temple/tests/test_utils.py
Expand Up @@ -94,8 +94,9 @@ def test_get_cookiecutter_config(default_config, mocker):
return_value=prompted_context)

assert (
temple.utils.get_cookiecutter_config('t', default_config=default_config) ==
('repo_dir', prompted_context)
temple.utils.get_cookiecutter_config('t', default_config=default_config) == (
'repo_dir', prompted_context,
)
)
mock_get_user_conf.assert_called_once_with()
mock_repo_dir.assert_called_once_with(template='t',
Expand Down

0 comments on commit df78dd2

Please sign in to comment.