Skip to content

test_generate_file_verbose_template_syntax_error fixed#1671

Merged
jensens merged 3 commits intocookiecutter:masterfrom
MaciejPatro:test
May 29, 2022
Merged

test_generate_file_verbose_template_syntax_error fixed#1671
jensens merged 3 commits intocookiecutter:masterfrom
MaciejPatro:test

Conversation

@MaciejPatro
Copy link
Copy Markdown
Contributor

Fixes #1655 - relative path that comes directly from Jinja2 TemplateSyntaxError
in some cases is in format "./tests/..." in other "tests/... now both cases
are accepted as a valid outcome.

Fixes cookiecutter#1655 - relative path that comes directly from Jinja2 TemplateSyntaxError
in some cases is in format "./tests/..." in other "tests/... now both cases
are accepted as a valid outcome.
Co-authored-by: jurgenwigg <53076001+jurgenwigg@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@jurgenwigg jurgenwigg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also fix lint issues.

@MaciejPatro
Copy link
Copy Markdown
Contributor Author

In general the lint problem was unconnected with the tests - it was in the end problem with old version of black tool https://stackoverflow.com/questions/71673404/importerror-cannot-import-name-unicodefun-from-click . I didn't want to mix those things together - but if this helps you - it's fixed.

@jurgenwigg
Copy link
Copy Markdown
Contributor

Green CI is always good idea :) Thanks for fixing CI

Copy link
Copy Markdown
Contributor

@jurgenwigg jurgenwigg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix :)

@MaciejPatro
Copy link
Copy Markdown
Contributor Author

Glad I could help - thank you for the review :) - it's helpful.

@jensens jensens merged commit 69cd155 into cookiecutter:master May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_generate_file_verbose_template_syntax_error fails with ./ difference in path

4 participants