Пример #1
0
 def test_skip_urls(self):
     os.chdir('./linkie/tests/assets/skip_urls/')
     linkie = Linkie()
     self.assertEqual(linkie.run(), 0)
     self.assertEqual(len(linkie.urls), 2)
Пример #2
0
 def test_skip_urls_custom(self):
     os.chdir('./linkie/tests/assets/skip_urls_custom/')
     linkie = Linkie(config_file_path='linkie.yaml')
     self.assertEqual(linkie.run(), 0)
     self.assertEqual(len(linkie.urls), 1)
Пример #3
0
 def test_file_types(self):
     os.chdir('./linkie/tests/assets/file_types/')
     linkie = Linkie()
     self.assertEqual(linkie.run(), 0)
Пример #4
0
 def test_file_types_custom(self):
     os.chdir('./linkie/tests/assets/file_types_custom/')
     linkie = Linkie(config_file_path='linkie.yaml')
     self.assertEqual(linkie.run(), 1)
Пример #5
0
 def test_excluded_directories_custom(self):
     os.chdir('./linkie/tests/assets/excluded_directories_custom/')
     linkie = Linkie(config_file_path='linkie.yaml')
     self.assertEqual(linkie.run(), 0)
Пример #6
0
 def test_excluded_directories(self):
     os.chdir('./linkie/tests/assets/excluded_directories/')
     linkie = Linkie()
     self.assertEqual(linkie.run(), 0)
Пример #7
0
 def test_multiple(self):
     os.chdir('./linkie/tests/assets/multiple/')
     linkie = Linkie()
     self.assertEqual(linkie.run(), 0)
Пример #8
0
 def test_broken(self):
     os.chdir('./linkie/tests/assets/broken/')
     linkie = Linkie()
     self.assertEqual(linkie.run(), 1)
Пример #9
0
 def test_basic(self):
     os.chdir('./linkie/tests/assets/basic/')
     linkie = Linkie()
     self.assertEqual(linkie.run(), 0)