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)
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)
def test_file_types(self): os.chdir('./linkie/tests/assets/file_types/') linkie = Linkie() self.assertEqual(linkie.run(), 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)
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)
def test_excluded_directories(self): os.chdir('./linkie/tests/assets/excluded_directories/') linkie = Linkie() self.assertEqual(linkie.run(), 0)
def test_multiple(self): os.chdir('./linkie/tests/assets/multiple/') linkie = Linkie() self.assertEqual(linkie.run(), 0)
def test_broken(self): os.chdir('./linkie/tests/assets/broken/') linkie = Linkie() self.assertEqual(linkie.run(), 1)
def test_basic(self): os.chdir('./linkie/tests/assets/basic/') linkie = Linkie() self.assertEqual(linkie.run(), 0)