Search code examples
pythonpython-poetry

Poetry new does not create a python test


I have googled this question but it is more basic than any of the results. I am reading a tutorial on Poetry and it says that when I do

poetry new rp-poetry

I should get a test_rp_poetry.py

However I do not get that python file. I also noticed that different than what the tutorial says, the __init__.py files are empty

Has the behavior of poetry changed lately?


Solution

  • Yes, the behaviour was changed in Apr 2021: see this commit. Note that your tutorial uses Python-3.9, which was originally released in 2020. You should therefore consult the latest poetry documentation in conjunction with the tutorial.