title: running a package pytest with poetry
body: <p>I am new to poetry and want to get it set-up with pytest. I have a package mylib in the following set-up</p>
  <pre><code>├── dist
  │   ├── mylib-0.0.1-py3-none-any.whl
  │   └── mylib-0.0.1.tar.gz
  ├── poetry.lock
  ├── mylib
  │   ├── functions.py
  │   ├── __init__.py
  │   └── utils.py
  ├── pyproject.toml
  ├── README.md
  └── tests
      └── test_functions.py
  </code></pre>
  <p>in test_functions I have</p>
  <pre><code>import mylib
  </code></pre>
  <p>However, when I run</p>
  <pre><code>poetry run pytest
  </code></pre>
  <p>it complains about <code>mylib</code> not being included. I can run</p>
  <pre><code>pip install dist/mylib-0.0.1-py3-none-any.whl
  </code></pre>
  <p>but that clutters my python environment with mylib. I want to use that environment as well for other packages.</p>
  <p>My question is: What is the proper way to work with poetry and pytest?</p>
  <p>My underlying python environment is a clean pyenv python 3.8. Using pyproject.toml I create a project based virtual environment for mylib.</p>