-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fix Issue #670 : bake context argument should match the case #671
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -269,7 +269,7 @@ def test_bake_with_no_console_script(cookies): | |||||||||
|
|
||||||||||
|
|
||||||||||
| def test_bake_with_console_script_files(cookies): | ||||||||||
| context = {'command_line_interface': 'click'} | ||||||||||
| context = {'command_line_interface': 'Click'} | ||||||||||
| result = cookies.bake(extra_context=context) | ||||||||||
| project_path, project_slug, project_dir = project_info(result) | ||||||||||
| found_project_files = os.listdir(project_dir) | ||||||||||
|
|
@@ -281,7 +281,7 @@ def test_bake_with_console_script_files(cookies): | |||||||||
|
|
||||||||||
|
|
||||||||||
| def test_bake_with_argparse_console_script_files(cookies): | ||||||||||
| context = {'command_line_interface': 'argparse'} | ||||||||||
| context = {'command_line_interface': 'Argparse'} | ||||||||||
| result = cookies.bake(extra_context=context) | ||||||||||
|
Comment on lines
+284
to
285
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: The 'command_line_interface' value in the context dictionary is case sensitive. It's better to use lower case to avoid potential issues with case sensitivity in the future.
Suggested change
|
||||||||||
| project_path, project_slug, project_dir = project_info(result) | ||||||||||
| found_project_files = os.listdir(project_dir) | ||||||||||
|
|
@@ -293,7 +293,7 @@ def test_bake_with_argparse_console_script_files(cookies): | |||||||||
|
|
||||||||||
|
|
||||||||||
| def test_bake_with_console_script_cli(cookies): | ||||||||||
| context = {'command_line_interface': 'click'} | ||||||||||
| context = {'command_line_interface': 'Click'} | ||||||||||
| result = cookies.bake(extra_context=context) | ||||||||||
|
Comment on lines
+296
to
297
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: The 'command_line_interface' value in the context dictionary is case sensitive. It's better to use lower case to avoid potential issues with case sensitivity in the future.
Suggested change
|
||||||||||
| project_path, project_slug, project_dir = project_info(result) | ||||||||||
| module_path = os.path.join(project_dir, 'cli.py') | ||||||||||
|
|
@@ -314,7 +314,7 @@ def test_bake_with_console_script_cli(cookies): | |||||||||
|
|
||||||||||
|
|
||||||||||
| def test_bake_with_argparse_console_script_cli(cookies): | ||||||||||
| context = {'command_line_interface': 'argparse'} | ||||||||||
| context = {'command_line_interface': 'Argparse'} | ||||||||||
| result = cookies.bake(extra_context=context) | ||||||||||
|
Comment on lines
+317
to
318
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: The 'command_line_interface' value in the context dictionary is case sensitive. It's better to use lower case to avoid potential issues with case sensitivity in the future.
Suggested change
|
||||||||||
| project_path, project_slug, project_dir = project_info(result) | ||||||||||
| module_path = os.path.join(project_dir, 'cli.py') | ||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: The 'command_line_interface' value in the context dictionary is case sensitive. It's better to use lower case to avoid potential issues with case sensitivity in the future.