File: upstream-test-suite

package info (click to toggle)
python-pipx 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,216 kB
  • sloc: python: 7,204; makefile: 17; sh: 13
file content (18 lines) | stat: -rw-r--r-- 496 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

# WARNING: This test suite downloads and executes code from the Internet, so
# execute it with care.

# If running repeatedly, you can seed the package cache with
# debian/package-cache.tar

set -eux

export PATH=$PATH:$HOME/.local/bin
pipx install pypiserver

mkdir -p .pipx_tests/package_cache
[ -e debian/package-cache.tar ] && tar -xf debian/package-cache.tar
python3 scripts/update_package_cache.py testdata/tests_packages .pipx_tests/package_cache

python3 -m pytest -v tests