@@ -113,9 +113,9 @@ def _makeConfigFromDict(dict_):
113113 it .assertSameFile = assertSameFile (it )
114114
115115 @it .should ("warn when setup is taking too long" )
116- @patch ("hdl_checker.base_server ._HOW_LONG_IS_TOO_LONG" , 0.1 )
116+ @patch ("hdl_checker.core ._HOW_LONG_IS_TOO_LONG" , 0.1 )
117117 @patch .object (
118- hdl_checker .base_server . BaseServer , "configure" , lambda * _ : time .sleep (0.5 )
118+ hdl_checker .core . HdlCheckerCore , "configure" , lambda * _ : time .sleep (0.5 )
119119 )
120120 @patch ("hdl_checker.tests.DummyServer._handleUiInfo" )
121121 def test (handle_ui_info ):
@@ -135,17 +135,17 @@ def test(handle_ui_info):
135135 project .getMessagesByPath (Path (source ))
136136
137137 handle_ui_info .assert_called_once_with (
138- hdl_checker .base_server ._HOW_LONG_IS_TOO_LONG_MSG
138+ hdl_checker .core ._HOW_LONG_IS_TOO_LONG_MSG
139139 )
140140
141141 removeIfExists (path )
142142
143143 @it .should ( # type: ignore
144144 "not warn when setup is taking too long if the user provides the config file"
145145 )
146- @patch ("hdl_checker.base_server ._HOW_LONG_IS_TOO_LONG" , 0.1 )
146+ @patch ("hdl_checker.core ._HOW_LONG_IS_TOO_LONG" , 0.1 )
147147 @patch .object (
148- hdl_checker .base_server . BaseServer , "configure" , lambda * _ : time .sleep (0.5 )
148+ hdl_checker .core . HdlCheckerCore , "configure" , lambda * _ : time .sleep (0.5 )
149149 )
150150 @patch ("hdl_checker.tests.DummyServer._handleUiInfo" )
151151 def test (handle_ui_info ):
@@ -257,7 +257,7 @@ def test():
257257
258258 @it .should ("still report static messages" ) # type: ignore
259259 @patch (
260- "hdl_checker.base_server .getStaticMessages" ,
260+ "hdl_checker.core .getStaticMessages" ,
261261 return_value = [CheckerDiagnostic (text = "some text" )],
262262 )
263263 def test (meth ):
@@ -339,7 +339,7 @@ def test():
339339 library = "some_lib" , design_units = [{"name" : "target" , "type" : "entity" }]
340340 )
341341
342- with patch ("hdl_checker.base_server .json.dump" , spec = json .dump ) as func :
342+ with patch ("hdl_checker.core .json.dump" , spec = json .dump ) as func :
343343 it .project .getMessagesByPath (source .filename )
344344 func .assert_called_once ()
345345
@@ -359,7 +359,7 @@ def test():
359359
360360 # Setting the config file should not trigger reparsing
361361 with patch (
362- "hdl_checker.base_server .WatchedFile.__init__" , side_effect = [None ]
362+ "hdl_checker.core .WatchedFile.__init__" , side_effect = [None ]
363363 ) as watched_file :
364364 old = it .project .config_file
365365 it .project .setConfig (it .config_file , origin = ConfigFileOrigin .user )
@@ -370,7 +370,7 @@ def test():
370370
371371 @it .should ("not recover cache if versions differ" ) # type: ignore
372372 @patchClassMap (MockBuilder = MockBuilder )
373- @patch ("hdl_checker.base_server .json.load" , return_value = {"__version__" : None })
373+ @patch ("hdl_checker.core .json.load" , return_value = {"__version__" : None })
374374 def test (json_load ):
375375 source = _SourceMock (
376376 library = "some_lib" , design_units = [{"name" : "target" , "type" : "entity" }]
@@ -432,7 +432,7 @@ def test(handle_ui_warning):
432432 @it .should ("get builder messages by path" ) # type: ignore
433433 # Avoid saving to cache because the patched method is not JSON
434434 # serializable
435- @patch ("hdl_checker.base_server .json.dump" )
435+ @patch ("hdl_checker.core .json.dump" )
436436 def test (_ ):
437437 with PatchBuilder ():
438438 it .project .setConfig (
@@ -583,7 +583,7 @@ def test():
583583 )
584584 @linuxOnly
585585 @patch (
586- "hdl_checker.base_server .getBuilderByName" , new = lambda name : FailingBuilder
586+ "hdl_checker.core .getBuilderByName" , new = lambda name : FailingBuilder
587587 )
588588 def test ():
589589 cache_content = {"builder" : FailingBuilder .builder_name }
0 commit comments