diff --git a/Orange/widgets/data/tests/test_owcsvimport.py b/Orange/widgets/data/tests/test_owcsvimport.py index 8988b7ec372..a707a3a381c 100644 --- a/Orange/widgets/data/tests/test_owcsvimport.py +++ b/Orange/widgets/data/tests/test_owcsvimport.py @@ -35,9 +35,14 @@ class TestOWCSVFileImport(WidgetTest): - def create_widget( + def create_widget_( self, cls: Type[W], stored_settings: Optional[dict] = None, reset_default_settings=True, **kwargs) -> W: + + widget = super().create_widget(cls, stored_settings, reset_default_settings) + env = kwargs.pop("env", {}) + for name, kwargs in env.items(): + widget.widget if reset_default_settings: self.reset_default_settings(cls) widget = cls.__new__(cls, signal_manager=self.signal_manager,