From 9b78cfdd3562bf45437759eb0f8096a3ebcbe68f Mon Sep 17 00:00:00 2001 From: James Ridgway Date: Tue, 22 Dec 2020 20:50:06 +0000 Subject: [PATCH] Fixing tests --- .../core/settings/test_control_validation_error.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/devdeck/core/settings/test_control_validation_error.py b/tests/devdeck/core/settings/test_control_validation_error.py index f38e46a..628b066 100644 --- a/tests/devdeck/core/settings/test_control_validation_error.py +++ b/tests/devdeck/core/settings/test_control_validation_error.py @@ -1,12 +1,16 @@ from assertpy import assert_that -from devdeck.controls.timer_control import TimerControl from devdeck.core.settings.control_validation_error import ControlValidationError class TestControlValidationError: def test_errors_parsed(self): errors = {'decks': [{0: [{'controls': [{3: [{'keyx': ['unknown field']}]}]}]}]} - exception = ControlValidationError(TimerControl(4, **{}), 4, errors) + exception = ControlValidationError(SomeControl(), 4, errors) assert_that(str(exception)) \ - .is_equal_to('The following validation errors occurred for TimerControl on key 4:\n * decks.0.controls.3.keyx: unknown field.') + .is_equal_to( + 'The following validation errors occurred for SomeControl on key 4:\n * decks.0.controls.3.keyx: unknown field.') + + +class SomeControl: + pass