Rename pacmanconf module to pacman
This commit is contained in:
parent
43c981e857
commit
176a3d758f
@ -1,6 +1,12 @@
|
|||||||
Changelog for packaging-scripts
|
Changelog for packaging-scripts
|
||||||
===============================
|
===============================
|
||||||
|
|
||||||
|
Version 1.6
|
||||||
|
-----------
|
||||||
|
|
||||||
|
* Project
|
||||||
|
* Rename pacmanconf module to pacman
|
||||||
|
|
||||||
Version 1.4
|
Version 1.4
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ import argparse
|
|||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import packaging_scripts.pacmanconf as pacmanconf
|
import packaging_scripts.pacman as pacman
|
||||||
import packaging_scripts.pkgfiles as pkgfiles
|
import packaging_scripts.pkgfiles as pkgfiles
|
||||||
import packaging_scripts.repos as repos
|
import packaging_scripts.repos as repos
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ if __name__ == "__main__":
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"repository",
|
"repository",
|
||||||
choices=pacmanconf.list_configured_repos(),
|
choices=pacman.list_configured_repos(),
|
||||||
help="the repository to operate on",
|
help="the repository to operate on",
|
||||||
metavar="repo",
|
metavar="repo",
|
||||||
)
|
)
|
||||||
|
@ -11,7 +11,7 @@ import argparse
|
|||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import packaging_scripts.pacmanconf as pacmanconf
|
import packaging_scripts.pacman as pacman
|
||||||
import packaging_scripts.pkgfiles as pkgfiles
|
import packaging_scripts.pkgfiles as pkgfiles
|
||||||
import packaging_scripts.repos as repos
|
import packaging_scripts.repos as repos
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ if __name__ == "__main__":
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"repository",
|
"repository",
|
||||||
choices=pacmanconf.list_configured_repos(),
|
choices=pacman.list_configured_repos(),
|
||||||
help="the repository to operate on",
|
help="the repository to operate on",
|
||||||
metavar="repo",
|
metavar="repo",
|
||||||
)
|
)
|
||||||
|
27
tests/test_pacman.py
Executable file
27
tests/test_pacman.py
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
import packaging_scripts.pacmanconf as pacmanconf
|
||||||
|
import re
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from hypothesis import given
|
||||||
|
from hypothesis.strategies import iterables, text
|
||||||
|
from pathlib import Path
|
||||||
|
from types import GeneratorType
|
||||||
|
from unittest.mock import MagicMock, patch
|
||||||
|
|
||||||
|
|
||||||
|
# ========== Constants ==========
|
||||||
|
TESTING_MODULE = f"packaging_scripts.pacmanconf"
|
||||||
|
|
||||||
|
|
||||||
|
# ========== Unit Tests ==========
|
||||||
|
# class TestParseConfigFile(unittest.TestCase):
|
||||||
|
# def setUp(self):
|
||||||
|
# self.pat
|
||||||
|
#
|
||||||
|
# def tearDown(self):
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# class TestListConfiguredRepos(unittest.TestCase):
|
||||||
|
# def setUp(self):
|
||||||
|
#
|
||||||
|
# def test_removes_one_element(self):
|
Loading…
x
Reference in New Issue
Block a user