File: test_addtag.py

package info (click to toggle)
python-auditwheel 5.3.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 816 kB
  • sloc: python: 4,270; ansic: 205; cpp: 58; makefile: 20; f90: 12
file content (15 lines) | stat: -rw-r--r-- 389 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from pathlib import Path
from unittest.mock import Mock

from auditwheel.main_addtag import execute

HERE = Path(__file__).parent.resolve()


def test_smoke(tmpdir):
    """Simple test to exercise the 'addtag' code path"""
    args = Mock(
        WHEEL_FILE=str(HERE / "cffi-1.5.0-cp27-none-linux_x86_64.whl"),
        WHEEL_DIR=str(tmpdir / "wheelhouse/"),
    )
    execute(args, None)