Example #1
0
 def _init_change_notes(self):
     return DirectoryChangeNotesProvider(self, self.directory)
Example #2
0
 def test_empty_directory(self):
     directory = self.get_empty_dir()
     provider = DirectoryChangeNotesProvider("test", directory)
     dir_content = self.get_dir_content(directory)
     assert list(provider()) == dir_content
     shutil.rmtree(directory)
Example #3
0
 def test_multi_item_directory(self):
     directory = "{}/change_notes/multi/".format(__location__)
     provider = DirectoryChangeNotesProvider("test", directory)
     dir_content = self.get_dir_content(directory)
     assert list(provider()) == dir_content
Example #4
0
 def test_single_item_directory(self):
     directory = '{}/change_notes/single/'.format(__location__)
     provider = DirectoryChangeNotesProvider('test', directory)
     dir_content = self.get_dir_content(directory)
     assert list(provider()) == dir_content