def test_sdk_path_is_none(self):
with self.assertRaises(AndroidDistribution.DistributionError):
with self.env() as sdk:
AndroidDistribution.cached(sdk)
def test_validate_bad_path(self):
// The SDK path is not validated until the tool is registered.
sdk = os.path.join("/no", "sdk", "here")
android_sdk = AndroidDistribution.cached(sdk)
After Change
def test_sdk_path_is_none(self):
with self.env() as sdk:
with self.assertRaises(AndroidDistribution.DistributionError):
AndroidDistribution.cached(sdk)
def test_validate_bad_path(self):
// The SDK path is not validated until the tool is registered.
sdk = os.path.join("/no", "sdk", "here")