Exemple #1
0
 def setUp(self):
     # self.book = Book(1283)
     self.test_book_dir = './gitenberg/tests/test_data/test_book'
     self.remote_path = '1234/1234.txt'
     mock_book = MagicMock()
     mock_book.local_path = self.test_book_dir
     mock_book.remote_path = self.remote_path
     self.fetcher = BookFetcher(mock_book)
Exemple #2
0
 def setUp(self):
     self.book = Book(1283, library_path='./test/library')
     self.fetcher = BookFetcher(self.book)
Exemple #3
0
 def setUp(self):
     self.book = Book(1283)
     self.fetcher = BookFetcher(self.book)