From 27e1fb9b5b30ab40b753d2245f09d6ad3e1d1de0 Mon Sep 17 00:00:00 2001 From: mazzma12 Date: Mon, 5 Sep 2022 13:38:12 +0200 Subject: [PATCH] Fix Issue #67 : bake context argument should match the case or it will fallback to the first item of the list --- tests/test_bake_project.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_bake_project.py b/tests/test_bake_project.py index 2916ad29c..e337927b5 100644 --- a/tests/test_bake_project.py +++ b/tests/test_bake_project.py @@ -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) 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) 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) project_path, project_slug, project_dir = project_info(result) module_path = os.path.join(project_dir, 'cli.py')