Rename pacmanconf module to pacman

This commit is contained in:
Eric Torres 2022-03-17 21:15:33 -07:00
parent 43c981e857
commit 176a3d758f
5 changed files with 37 additions and 4 deletions

View File

@ -1,6 +1,12 @@
Changelog for packaging-scripts
===============================
Version 1.6
-----------
* Project
* Rename pacmanconf module to pacman
Version 1.4
-----------

View File

@ -11,7 +11,7 @@ import argparse
import logging
import sys
import packaging_scripts.pacmanconf as pacmanconf
import packaging_scripts.pacman as pacman
import packaging_scripts.pkgfiles as pkgfiles
import packaging_scripts.repos as repos
@ -72,7 +72,7 @@ if __name__ == "__main__":
)
parser.add_argument(
"repository",
choices=pacmanconf.list_configured_repos(),
choices=pacman.list_configured_repos(),
help="the repository to operate on",
metavar="repo",
)

View File

@ -11,7 +11,7 @@ import argparse
import logging
import sys
import packaging_scripts.pacmanconf as pacmanconf
import packaging_scripts.pacman as pacman
import packaging_scripts.pkgfiles as pkgfiles
import packaging_scripts.repos as repos
@ -70,7 +70,7 @@ if __name__ == "__main__":
)
parser.add_argument(
"repository",
choices=pacmanconf.list_configured_repos(),
choices=pacman.list_configured_repos(),
help="the repository to operate on",
metavar="repo",
)

27
tests/test_pacman.py Executable file
View 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):