From de53dd0bbde5afa3e742946a457b0d2732c11da2 Mon Sep 17 00:00:00 2001 From: soksanichenko Date: Thu, 28 Apr 2022 16:30:03 +0300 Subject: [PATCH] - Unit tests are fixed --- tests/test_gather_modules.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_gather_modules.py b/tests/test_gather_modules.py index 0930ef06..427285d1 100644 --- a/tests/test_gather_modules.py +++ b/tests/test_gather_modules.py @@ -3,7 +3,7 @@ import gzip import os from io import StringIO import yaml -from pungi.scripts.gather_modules import collect_modules +from pungi.scripts.gather_modules import collect_modules, EMPTY_FILE import unittest from pyfakefs.fake_filesystem_unittest import TestCase @@ -106,7 +106,7 @@ class TestModulesYamlParser(TestCase): self.assertEqual(['mariadb-devel-10.3_1-8010020200108182321.cdc1202b', 'javapackages-tools-201801-8000020190628172923.b07bea58'], os.listdir(os.path.join(PATH_TO_KOJI, 'modules/x86_64'))) - self.assertEqual(['ant.yaml'], + self.assertEqual([EMPTY_FILE, 'ant.yaml'], os.listdir(os.path.join(PATH_TO_KOJI, 'module_defaults'))) # check that modules were exported @@ -121,4 +121,4 @@ class TestModulesYamlParser(TestCase): if __name__ == '__main__': - unittest.main() \ No newline at end of file + unittest.main()