Skip to content

Commit

Permalink
Fix linting in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
insspb committed May 27, 2020
1 parent e253893 commit 6a6347d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
@@ -0,0 +1,3 @@
* text=auto
*crlf.txt text eol=crlf
simple-with-newline.txt text eol=lf
@@ -1 +1,2 @@
"""Sample file to be created through a cookiecutter run."""
print("This is the contents of {{ cookiecutter.filename }}.py.")
7 changes: 3 additions & 4 deletions tests/test_generate_files.py
Expand Up @@ -91,11 +91,10 @@ def test_generate_files_with_trailing_newline():

@pytest.mark.usefixtures('clean_system', 'remove_additional_folders')
def test_generate_files_with_windows_newline():
"""Verify windows source line end not changed during files generation."""
generate.generate_files(
context={
'cookiecutter': {'food': 'pizzä'}
},
repo_dir='tests/test-generate-files'
context={'cookiecutter': {'food': 'pizzä'}},
repo_dir='tests/test-generate-files',
)

newline_file = 'inputpizzä/simple-with-newline-crlf.txt'
Expand Down

0 comments on commit 6a6347d

Please sign in to comment.