Commit f104af2
Test package installation in temporary virtual environment (#519)
Resolves #516
Creates a virtual environment in temporary package directory and tests
package installation in there rather than installing in parent
environment tests are run from.
Calling `pip install` command by directly referencing Python executable
in created virtual environment seems to work in terms of ensuring
package is installed in `site-packages` of temporary virtual environment
rather than parent environment (at least I no longer see a
`cookiecutter-test` entry when running `pip list` after running tests)
and it seemed non trivial to `source` the virtual environment script
with `subprocess.run`.
---------
Co-authored-by: Patrick J. Roddy <[email protected]>1 parent 6e25c1b commit f104af2
2 files changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| |||
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
106 | | - | |
107 | | - | |
108 | 108 | | |
| 109 | + | |
109 | 110 | | |
110 | | - | |
111 | | - | |
| 111 | + | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
0 commit comments