summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2016-11-13 19:13:56 +0000
committerrsiddharth <s@ricketyspace.net>2016-11-13 19:13:56 +0000
commitf0a75c4b3a5bf21146e28be6391786fe4478450a (patch)
treeef459c29aaa5f27b76998c6d57d6236454f16f5c /tests
parentfca51ac7858705dbf11b3900d40b40bbe7145aba (diff)
Update `mk_pkgs_list` function.
Now returns the path to the file that contains the list of packages. * gd_diff.py (mk_pkgs_list): New function. * tests/test_gd_diff.py (test_mk_pkgs_list): Update test.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gd_diff.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_gd_diff.py b/tests/test_gd_diff.py
index b62e014..f91c2b8 100644
--- a/tests/test_gd_diff.py
+++ b/tests/test_gd_diff.py
@@ -287,9 +287,8 @@ class TestGdDiff(object):
return self.test_home
with mock.patch('os.getenv', new=env):
- mk_pkgs_list('parkes')
+ pkgs_file = mk_pkgs_list('parkes')
# test
- pkgs_file = os.path.join(pkgs_dir(), 'parkes')
assert_equal(read_file(pkgs_file), 'antlr\napt\napt-setup\nautoconf\nautoconf2.59\nautoconf2.64\nbacula\nbase-files\nbase-installer\nbatik\ncairomm\ncdebootstrap\ncfitsio3\nchoose-mirror\nclaws-mail\ndb4.6\ndb4.7\ndb4.8\ndebian-cd\ndebian-edu\ndebian-installer\ndebian-installer-launcher\ndebootstrap\ndesktop-base\ndoc-linux\ndoc-linux-hr\ndoc-linux-it\ndoc-linux-ja\ndoc-linux-pl\nenscript\nepiphany-browser\nfop\nfreetype\ngalaxia\ngdm3\nglibmm2.4\ngnewsense-archive-keyring\ngnome-desktop\ngtkmm2.4\nicedove\niceweasel\nkde4libs\nkdebase\nkdebase-workspace\nkdenetwork\nkernel-wedge\nlensfun\nliferea\nlintian\nlinux-2.6\nlinux-kernel-di-amd64-2.6\nlinux-kernel-di-i386-2.6\nlinux-latest-2.6\nlive-build\nlive-config\nmeta-gnome2\nmplayer\nnet-retriever\nobjcryst-fox\nopenbox-themes\nopenjdk-6\nopenoffice.org\npangomm\nperl-tk\npkgsel\npopularity-contest\npsutils\npython-apt\nscreenlets\nsip4-qt3\nsoftware-center\ntcl8.4\ntcl8.5\ntexlive-extra\ntk8.4\ntk8.5\nupdate-manager\nvim\nwmaker\nxchat\nxdm\nxorg-server\nxserver-xorg-video-siliconmotion\nyeeloong-base\n')