Пример #1
0
 def test_load_foler_files(self):
     folder = os.path.join(os.getcwd(), 'test')
     files = utils.load_foler_files(folder)
     file1 = os.path.join(os.getcwd(), 'test', 'test_utils.py')
     file2 = os.path.join(os.getcwd(), 'test', 'data', 'demo_binds.yml')
     self.assertIn(file1, files)
     self.assertIn(file2, files)
Пример #2
0
 def test_load_foler_files(self):
     folder = os.path.join(os.getcwd(), 'tests')
     files = utils.load_foler_files(folder)
     file1 = os.path.join(os.getcwd(), 'tests', 'test_utils.py')
     file2 = os.path.join(os.getcwd(), 'tests', 'data', 'demo_binds.yml')
     self.assertIn(file1, files)
     self.assertIn(file2, files)