def test_run__ExtensionManifest_open__is_called(self, ExtensionManifest): runner = ExtensionRunner() runner.run('id') ExtensionManifest.open.assert_called_with('id')
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')