Exemplo n.º 1
0
 def test_root_dir(self):
     test_file = self.get_test_loc('haxe/tags/haxelib.json')
     test_dir = self.get_test_loc('haxe/tags')
     codebase = Codebase(test_dir)
     manifest_resource = codebase.get_resource_from_path(test_file, absolute=True)
     proot = haxe.HaxePackage.get_package_root(manifest_resource, codebase)
     assert test_dir == proot.location
Exemplo n.º 2
0
 def test_BuckPackage_recognize_with_license(self):
     test_file = self.get_test_loc('buck/parse/license/BUCK')
     test_loc = self.get_test_loc('buck/parse/license/')
     result_package = list(build.BuckPackageHandler.parse(test_file))[0]
     codebase = Codebase(test_loc)
     resource = codebase.get_resource_from_path(test_file, absolute=True)
     license_expression = build.compute_normalized_license(result_package, resource, codebase)
     assert license_expression == 'apache-2.0'
Exemplo n.º 3
0
 def test_root_dir(self):
     test_file = self.get_test_loc(
         'conda/requests-kerberos-0.8.0-py35_0.tar.bz2-extract/info/recipe.tar-extract/recipe/meta.yaml'
     )
     test_dir = self.get_test_loc(
         'conda/requests-kerberos-0.8.0-py35_0.tar.bz2-extract')
     codebase = Codebase(test_dir)
     resource = codebase.get_resource_from_path(test_file, absolute=True)
     proot = conda.CondaMetaYamlHandler.get_conda_root(resource, codebase)
     assert proot.location == test_dir
Exemplo n.º 4
0
 def test_root_dir(self):
     test_file = self.get_test_loc(
         'conda/requests-kerberos-0.8.0-py35_0.tar.bz2-extract/info/recipe.tar-extract/recipe/meta.yaml'
     )
     test_dir = self.get_test_loc(
         'conda/requests-kerberos-0.8.0-py35_0.tar.bz2-extract')
     codebase = Codebase(test_dir)
     manifest_resource = codebase.get_resource_from_path(test_file,
                                                         absolute=True)
     proot = conda.CondaPackage.get_package_root(manifest_resource,
                                                 codebase)
     assert test_dir == proot.location