Exemplo n.º 1
0
 def test_BuckPackage_recognize(self):
     test_file = self.get_test_loc('buck/parse/BUCK')
     result_packages = build.BuckPackage.recognize(test_file)
     expected_packages = [
         build.BuckPackage(name='app'),
         build.BuckPackage(name='app2'),
     ]
     compare_package_results(expected_packages, result_packages)
Exemplo n.º 2
0
 def test_BuckPackage_recognize_with_license(self):
     test_file = self.get_test_loc('buck/parse/license/BUCK')
     result_packages = build.BuckPackage.recognize(test_file)
     expected_packages = [
         build.BuckPackage(
             name='app',
             declared_license=['LICENSE'],
         )
     ]
     compare_package_results(expected_packages, result_packages)