File: test_install_script.py

package info (click to toggle)
pipsi 0.9-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 104 kB
  • sloc: python: 493; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 453 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import sys
import subprocess
from pipsi import IS_WIN


def test_create_env(tmpdir):
    subprocess.check_call([
        sys.executable, 'get-pipsi.py',
        str(tmpdir.join('venv')),
        str(tmpdir.join('test_bin')),
        '.'
    ])
    if IS_WIN:
        subprocess.check_call([
            str(tmpdir.join('test_bin/pipsi.exe'))
        ])
    else:
        subprocess.check_call([
            str(tmpdir.join('test_bin/pipsi'))
        ])