예제 #1
0
 def test_run__ExtensionManifest_open__is_called(self, ExtensionManifest):
     runner = ExtensionRunner()
     runner.run('id')
     ExtensionManifest.open.assert_called_with('id')
예제 #2
0
 def test_run__incompatible_version__exception_is_raised(self, manifest):
     manifest.check_compatibility.side_effect = VersionIncompatibilityError(
     )
     runner = ExtensionRunner()
     with pytest.raises(VersionIncompatibilityError):
         runner.run('id')