8000 Fix replay by vemonet · Pull Request #1904 · cookiecutter/cookiecutter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix replay #1904

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

Merged
merged 3 commits into from
Jul 25, 2023
Merged

Fix replay #1904

merged 3 commits into from
Jul 25, 2023

Conversation

vemonet
Copy link
Contributor
@vemonet vemonet commented Jul 23, 2023

An error where the context defined in the replay file was not taken into account was introduced with #1758 (which added prompts for entries missing from the replay file). It seems to impact a few people: #1900 and #1902)

This PR:

  • Properly uses the context extracted from the replay file
  • Fix the tests related to it, removed one useless test (too many mocks, the tests are just testing mocks at some point :p)

Closes #1900
Closes #1902

@ericof @kurtmckee

Copy link
Member
@kurtmckee kurtmckee left a comment

Choose a reason for hiding this comment

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

I cannot tell whether this fixes the linked issues.

@vemonet Are there existing tests that you could point to that demonstrate the linked issues are fixed? If not, would you add tests to demonstrate the root problem is resolved?

@ericof ericof added the bug This issue/PR relates to a bug. label Jul 24, 2023
@ericof ericof added this to the 2.2.4 milestone Jul 24, 2023
@ericof
Copy link
Member
ericof commented Jul 24, 2023

@vemonet Could you please provide tests to confirm both issues are really fixed?

@vemonet
Copy link
Contributor Author
vemonet commented Jul 25, 2023

Hi @ericof and @kurtmckee

I added a test that generates a project with a replay file, and check if the replayed values are properly used in the generated file

It fails if you remove the changes I made to fix the replat (because the replayed values are not passed to the context), and works with my change

@ericof ericof merged commit 082955e into cookiecutter:main Jul 25, 2023
@ericof ericof modified the milestones: 2.2.4, 3.0.0, 2.3.0 Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug.
Projects
None yet
3 participants
0