12rambau / pytest-copie

The pytest plugin for your copier templates 📒
https://pytest-copie.readthedocs.io/en/latest/
MIT License
14 stars 2 forks source link

fix: include templated values in the answers #39

Closed 12rambau closed 10 months ago

12rambau commented 10 months ago

Fix #38 Fix #37

The trick is to consider extra_answer as defauts overwrites. Now the Worker will simply update the defaults provided by the user and run as expected afterward.

I fixed #37 as well because I needed a file to test the computed value of a templated variable.

codecov[bot] commented 10 months ago

Codecov Report

Merging #39 (b9f0def) into main (1eceb82) will decrease coverage by 0.41%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #39      +/-   ##
==========================================
- Coverage   94.52%   94.11%   -0.41%     
==========================================
  Files           2        2              
  Lines          73       68       -5     
==========================================
- Hits           69       64       -5     
  Misses          4        4              
Files Changed Coverage Δ
pytest_copie/plugin.py 93.84% <100.00%> (-0.44%) :arrow_down: