mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
[packages] Expand tests with PM-specific bits
This commit is contained in:
parent
fcbe8d3a3e
commit
3e0c9ba056
4 changed files with 38 additions and 0 deletions
22
src/modules/packages/tests/test-pm-pacman.py
Normal file
22
src/modules/packages/tests/test-pm-pacman.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
# SPDX-FileCopyrightText: no
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
#
|
||||
# Calamares Boilerplate
|
||||
import libcalamares
|
||||
libcalamares.globalstorage = libcalamares.GlobalStorage(None)
|
||||
libcalamares.globalstorage.insert("testing", True)
|
||||
|
||||
# Module prep-work
|
||||
from src.modules.packages import main
|
||||
|
||||
# .. we don't have a job in this test, so fake one
|
||||
class Job(object):
|
||||
def __init__(self):
|
||||
self.configuration = libcalamares.utils.load_yaml("pm-pacman.yaml")
|
||||
libcalamares.job = Job()
|
||||
|
||||
# Specific PM test
|
||||
p = main.PMPacman()
|
||||
assert p.pacman_num_retries == 0
|
||||
assert p.pacman_disable_timeout == False
|
||||
assert p.pacman_needed_only == False
|
Loading…
Add table
Add a link
Reference in a new issue