27 lines
No EOL
1.1 KiB
Diff
27 lines
No EOL
1.1 KiB
Diff
From 72e584d799450e7ede0667a8e875526bce21e5fd Mon Sep 17 00:00:00 2001
|
|
From: Diego Prado Gesto <d.pradogesto@ultimaker.com>
|
|
Date: Wed, 16 May 2018 16:50:36 +0200
|
|
Subject: [PATCH] CURA-5164 Fix PluginRegistry test (subset)
|
|
|
|
---
|
|
tests/PluginRegistry/TestPluginRegistry.py | 10 +++++++---
|
|
tests/Settings/conftest.py | 7 ++++---
|
|
tests/VersionUpgrade/TestVersionUpgradeManager.py | 1 -
|
|
tests/conftest.py | 7 +++----
|
|
4 files changed, 14 insertions(+), 11 deletions(-)
|
|
|
|
diff --git a/tests/PluginRegistry/TestPluginRegistry.py b/tests/PluginRegistry/TestPluginRegistry.py
|
|
index 0f8456e7c..43a8354e1 100644
|
|
--- a/tests/PluginRegistry/TestPluginRegistry.py
|
|
+++ b/tests/PluginRegistry/TestPluginRegistry.py
|
|
@@ -68,7 +72,7 @@ def test_disabledPlugin(self, registry):
|
|
|
|
def test_emptyPlugin(self, registry):
|
|
registry.loadPlugin("EmptyPlugin")
|
|
- with pytest.raises(KeyError):
|
|
+ with pytest.raises(PluginNotFoundError):
|
|
registry.getPluginObject("EmptyPlugin")
|
|
|
|
def test_invalidVersionNumber(self, registry):
|
|
|
|
|