Closed alexandresgf closed 2 years ago
Base: 89.43% // Head: 91.01% // Increases project coverage by +1.57%
:tada:
Coverage data is based on head (
0fefa5e
) compared to base (05e1f12
). Patch has no changes to coverable lines.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Hi, thanks for the fix. I have a few comments:
TypeError
makes this distinction clear._reqs_file
is confusing to me, please rename the parameter to show that it can be either a string or a list. It would be even better if you could also add type hints.
- Could this be tested? I guess it would be enough to add an environment with a different pipenv version, without actually modifying any test cases.
I can mock-up the behavior of both convert_deps_to_pip
and write the tests. Is it sounds good?
Sounds good to me, thanks!
Thanks @alexandresgf :partying_face:
Since Pipenv v2022.8.30 the function
convert_deps_to_pip
returns a list of strings containing all the dependencies found in the Pipfile converted to Pip format. So, I added a try/exception statement to catch theTypeError
exception, when the previous code tries to open the temporary file, and write the dependencies to the requirements file.