Skip to content

Commit

Permalink
updated readme for specifying python version and added basic unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidwhiteside committed Apr 10, 2024
1 parent 72e0f1e commit 5b5f8fb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ Virtual environment loading from /var/folders/4b/dnp21z017cg_rbgfdtzclqlm0000gn/
(tempyenv)(venv) $ echo "now you can pip install in your virtual environment"
```

To specify a specific version of python
```bash
$ tempyenv -p python3.10
```

or

```bash
$ python3.10 -m tempyenv
```

License
=======

Expand Down
4 changes: 4 additions & 0 deletions tests/units/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ def test_create_temporary_directory(self):
cli.create_temporary_directory()
assert(cli.temp_dir != None)
assert(cli.venv_path != None)

def test_python_exec(self):
cli = TemporaryVenvCreator(python_exec="python_test")
assert(cli.python_exec == "python_test")

0 comments on commit 5b5f8fb

Please sign in to comment.