Fix PluginRegistry test
This commit is contained in:
parent
00326a6960
commit
b0d71399a2
2 changed files with 35 additions and 3 deletions
27
fix-PluginRegistry-test.patch
Normal file
27
fix-PluginRegistry-test.patch
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
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):
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue