Skip to content

Fix replay#1904

Merged
ericof merged 3 commits intocookiecutter:mainfrom
vemonet:fix-replay
Jul 25, 2023
Merged

Fix replay#1904
ericof merged 3 commits intocookiecutter:mainfrom
vemonet:fix-replay

Conversation

@vemonet
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

ericof commented Jul 24, 2023

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

@vemonet
Copy link
Copy Markdown
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