-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from sjvrijn/1-update-tests
Update tests to use copier instead of cookiecutter
- Loading branch information
Showing
4 changed files
with
25 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
def test_double_quotes_in_name_and_description(cookies): | ||
def test_double_quotes_in_name_and_description(copie): | ||
ctx = { | ||
"project_short_description": '"double quotes"', | ||
"full_name": '"name"name' | ||
} | ||
project = cookies.bake(extra_context=ctx) | ||
project = copie.copy(extra_answers=ctx) | ||
|
||
assert project.exit_code == 0 | ||
|
||
|
||
def test_single_quotes_in_name_and_description(cookies): | ||
def test_single_quotes_in_name_and_description(copie): | ||
ctx = { | ||
"project_short_description": "'single quotes'", | ||
"full_name": "Mr. O'Keefe" | ||
} | ||
project = cookies.bake(extra_context=ctx) | ||
project = copie.copy(extra_answers=ctx) | ||
|
||
assert project.exit_code == 0 | ||
|
||
|
||
def test_dash_in_directory_name(cookies): | ||
def test_dash_in_directory_name(copie): | ||
ctx = { | ||
"directory_name": "my-python-project" | ||
} | ||
project = cookies.bake(extra_context=ctx) | ||
project = copie.copy(extra_answers=ctx) | ||
|
||
assert project.exit_code == 0 | ||
|
||
|
||
def test_space_in_directory_name(cookies): | ||
def test_space_in_directory_name(copie): | ||
ctx = { | ||
"directory_name": "my python project" | ||
} | ||
project = cookies.bake(extra_context=ctx) | ||
project = copie.copy(extra_answers=ctx) | ||
|
||
assert project.exit_code == 0 |