Skip to content

Commit

Permalink
Add docstring, expanding test coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Oct 23, 2023
1 parent 6a4b682 commit 4057ccb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions jaraco/envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@


class VirtualEnv:
"""
>>> mp = getfixture('monkeypatch')
>>> root = getfixture('tmp_path')
>>> mp.setenv('SERVICES_ROOT', str(root))
Subclass VirtualEnv and supply name and req:
>>> class MyVirtualEnv(VirtualEnv):
... name = '.venv'
... req = 'example'
>>> env = MyVirtualEnv().create()
"""

root = Path(os.environ.get('SERVICES_ROOT', '.cache/services'))
clean_opts = ["--no-setuptools", "--no-pip", "--no-wheel"]

Expand Down

0 comments on commit 4057ccb

Please sign in to comment.