mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
tests/test_alpm: add --nosign and remove an unused import
This commit is contained in:
parent
5622d6d0c1
commit
372454136f
1 changed files with 3 additions and 3 deletions
|
@ -2,12 +2,12 @@
|
|||
# Copyright (c) 2020 DDoSolitary <DDoSolitary@gmail.com>, et al.
|
||||
|
||||
import pathlib
|
||||
import pytest
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import tempfile
|
||||
|
||||
import pytest
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.asyncio,
|
||||
pytest.mark.skipif(shutil.which('makepkg') is None, reason='requires makepkg command'),
|
||||
|
@ -31,7 +31,7 @@ def setup_module(module):
|
|||
'arch=(any)\n'
|
||||
'provides=("test-provides=5.6-7" "test-provides-unversioned")\n'
|
||||
)
|
||||
subprocess.check_call(['makepkg'], cwd=pkg_path)
|
||||
subprocess.check_call(['makepkg', '--nosign'], cwd=pkg_path)
|
||||
pkg_file = subprocess.check_output(['makepkg', '--packagelist'], cwd=pkg_path, text=True).strip()
|
||||
db_path = pkg_path / 'test-db'
|
||||
db_path.mkdir()
|
||||
|
|
Loading…
Add table
Reference in a new issue