Esempio n. 1
0
 def test_parse_facebook_missing_type(self):
     test_file = self.get_test_loc(
         'readme/facebook/missing-type/README.facebook')
     expected_loc = self.get_test_loc(
         'readme/facebook/missing-type/README.facebook.expected')
     package = readme.parse(test_file)
     self.check_package(package, expected_loc, regen=False)
Esempio n. 2
0
 def test_parse_thirdparty_basic(self):
     test_file = self.get_test_loc(
         'readme/thirdparty/basic/README.thirdparty')
     expected_loc = self.get_test_loc(
         'readme/thirdparty/basic/README.thirdparty.expected')
     package = readme.parse(test_file)
     self.check_package(package, expected_loc, regen=False)
Esempio n. 3
0
 def test_parse_facebook_capitalized_filename(self):
     test_file = self.get_test_loc(
         'readme/facebook/capital-filename/README.FACEBOOK')
     expected_loc = self.get_test_loc(
         'readme/facebook/capital-filename/README.FACEBOOK.expected')
     package = readme.parse(test_file)
     self.check_package(package, expected_loc, regen=False)
Esempio n. 4
0
 def test_parse_facebook_website_as_homepage_url(self):
     test_file = self.get_test_loc(
         'readme/facebook/website-as-homepage_url/README.facebook')
     expected_loc = self.get_test_loc(
         'readme/facebook/website-as-homepage_url/README.facebook.expected')
     package = readme.parse(test_file)
     self.check_package(package, expected_loc, regen=False)
Esempio n. 5
0
 def test_parse_facebook_project_as_name(self):
     test_file = self.get_test_loc(
         'readme/facebook/project-as-name/README.facebook')
     expected_loc = self.get_test_loc(
         'readme/facebook/project-as-name/README.facebook.expected')
     package = readme.parse(test_file)
     self.check_package(package, expected_loc, regen=False)
Esempio n. 6
0
 def test_parse_facebook_download_link_as_download_url(self):
     test_file = self.get_test_loc(
         'readme/facebook/download-link-as-download_url/README.facebook')
     expected_loc = self.get_test_loc(
         'readme/facebook/download-link-as-download_url/README.facebook.expected'
     )
     package = readme.parse(test_file)
     self.check_package(package, expected_loc, regen=False)
Esempio n. 7
0
 def test_parse_facebook_use_parent_dir_name_as_package_name_if_no_package_name_detected(
         self):
     test_file = self.get_test_loc(
         'readme/facebook/use-parent-dir-name-as-package-name/setuptools/README.facebook'
     )
     expected_loc = self.get_test_loc(
         'readme/facebook/use-parent-dir-name-as-package-name/setuptools/README.facebook.expected'
     )
     package = readme.parse(test_file)
     self.check_package(package, expected_loc, regen=False)
Esempio n. 8
0
 def test_parse_invalid_readme(self):
     test_file = self.get_test_loc('readme/invalid/invalid_file')
     package = readme.parse(test_file)
     assert package == None
Esempio n. 9
0
 def test_parse_android_basic(self):
     test_file = self.get_test_loc('readme/android/basic/README.android')
     expected_loc = self.get_test_loc(
         'readme/android/basic/README.android.expected')
     package = readme.parse(test_file)
     self.check_package(package, expected_loc, regen=False)
Esempio n. 10
0
 def test_parse_chromium_basic(self):
     test_file = self.get_test_loc('readme/chromium/basic/README.chromium')
     expected_loc = self.get_test_loc(
         'readme/chromium/basic/README.chromium.expected')
     package = readme.parse(test_file)
     self.check_package(package, expected_loc, regen=False)
Esempio n. 11
0
 def test_parse_google_basic(self):
     test_file = self.get_test_loc('readme/google/basic/README.google')
     expected_loc = self.get_test_loc(
         'readme/google/basic/README.google.expected')
     package = readme.parse(test_file)
     self.check_package(package, expected_loc, regen=False)