From 23aed48b4c43cc7373d84054b43b607cc9b6e0fb Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Wed, 15 Nov 2017 17:45:11 +0100 Subject: profile: Include standard IGNORE entries in new Manifests --- tests/test_profile.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/test_profile.py') diff --git a/tests/test_profile.py b/tests/test_profile.py index 50e1a53..0a7e4d9 100644 --- a/tests/test_profile.py +++ b/tests/test_profile.py @@ -97,6 +97,12 @@ class EbuildRepositoryTests(TempDirTestCase): } FILES = dict.fromkeys(EXPECTED_TYPES, u'') + EXPECTED_IGNORE = [ + 'distfiles', + 'local', + 'packages', + ] + def test_get_entry_type_for_path(self): p = self.PROFILE() for f, expt in self.EXPECTED_TYPES.items(): @@ -120,6 +126,11 @@ class EbuildRepositoryTests(TempDirTestCase): for f in self.EXPECTED_MANIFESTS: self.assertEqual(m.find_path_entry(f).tag, 'MANIFEST', "type mismatch for {}".format(f)) + for f in self.EXPECTED_IGNORE: + self.assertIsNotNone(m.find_path_entry(f), + "missing IGNORE entry for {}".format(f)) + self.assertEqual(m.find_path_entry(f).tag, 'IGNORE', + "type mismatch for {}".format(f)) return m def test_set_loader_options(self): -- cgit v1.2.3