gns-deb-diff

automate the documentation of the differences between gNewSense and Debian.
git clone git://git.ricketyspace.net/gns-deb-diff.git
Log | Files | Refs

commit 9031933d0ccac9c9732b40b53e7f03eb51fcaafe
parent 95d6e1427dad0a8844080b91fdd91385a52a7c6f
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 30 Oct 2016 20:08:22 +0000

rename function `get_packages`.

`get_packages` is now `read_packages`.

* gd_diff.py (read_packages): Rename `get_packages` as `read_packages`.
* tests/test_gd_diff.py (test_read_packages): Rename function from
`test_get_packages`.
(test_read_packages_sanity): Rename function from
`test_get_packages_sanity`.
(test_slurp_all_gns_readmes): `get_packages` is now `read_packages`.

Diffstat:
gd_diff.py | 2+-
tests/test_gd_diff.py | 10+++++-----
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gd_diff.py b/gd_diff.py @@ -57,7 +57,7 @@ def execute(cmd, out=None, err=None): return completed_process -def get_packages(pkgs_file): +def read_packages(pkgs_file): """Return an iterator contaning of package names from `pkgs_file`. """ diff --git a/tests/test_gd_diff.py b/tests/test_gd_diff.py @@ -63,12 +63,12 @@ class TestGdDiff(object): cp = execute(cmd) - def test_get_packages(self): - pkgs_iter = get_packages(self.pkgs_file) + def test_read_packages(self): + pkgs_iter = read_packages(self.pkgs_file) assert len(list(pkgs_iter)) == 82 - def test_get_packages_sanity(self): - pkgs_iter = get_packages(self.pkgs_file) + def test_read_packages_sanity(self): + pkgs_iter = read_packages(self.pkgs_file) for pkg in pkgs_iter: assert not ' ' in pkg @@ -131,7 +131,7 @@ class TestGdDiff(object): def test_slurp_all_gns_readmes(self): - pkgs = get_packages(self.small_pkgs_file) + pkgs = read_packages(self.small_pkgs_file) # expected packages with no readmes expected_pkgs_noreadmes = [