@@ -281,7 +281,7 @@ class TestLocalDfnRegistry:
281281
282282 def test_init (self , dfn_dir ):
283283 """Test LocalDfnRegistry initialization."""
284- from modflow_devtools .dfn import LocalDfnRegistry
284+ from modflow_devtools .dfns import LocalDfnRegistry
285285
286286 registry = LocalDfnRegistry (path = dfn_dir , ref = "local" )
287287
@@ -291,7 +291,7 @@ def test_init(self, dfn_dir):
291291
292292 def test_spec_property (self , dfn_dir ):
293293 """Test accessing spec through registry."""
294- from modflow_devtools .dfn import LocalDfnRegistry
294+ from modflow_devtools .dfns import LocalDfnRegistry
295295
296296 registry = LocalDfnRegistry (path = dfn_dir )
297297
@@ -302,7 +302,7 @@ def test_spec_property(self, dfn_dir):
302302
303303 def test_get_dfn (self , dfn_dir ):
304304 """Test getting a DFN by name."""
305- from modflow_devtools .dfn import LocalDfnRegistry
305+ from modflow_devtools .dfns import LocalDfnRegistry
306306
307307 registry = LocalDfnRegistry (path = dfn_dir )
308308
@@ -313,7 +313,7 @@ def test_get_dfn(self, dfn_dir):
313313
314314 def test_get_dfn_path (self , dfn_dir ):
315315 """Test getting file path for a component."""
316- from modflow_devtools .dfn import LocalDfnRegistry
316+ from modflow_devtools .dfns import LocalDfnRegistry
317317
318318 registry = LocalDfnRegistry (path = dfn_dir )
319319
@@ -324,7 +324,7 @@ def test_get_dfn_path(self, dfn_dir):
324324
325325 def test_get_dfn_path_not_found (self , dfn_dir ):
326326 """Test getting path for nonexistent component raises FileNotFoundError."""
327- from modflow_devtools .dfn import LocalDfnRegistry
327+ from modflow_devtools .dfns import LocalDfnRegistry
328328
329329 registry = LocalDfnRegistry (path = dfn_dir )
330330
@@ -333,15 +333,15 @@ def test_get_dfn_path_not_found(self, dfn_dir):
333333
334334 def test_schema_version_property (self , dfn_dir ):
335335 """Test schema_version property."""
336- from modflow_devtools .dfn import LocalDfnRegistry
336+ from modflow_devtools .dfns import LocalDfnRegistry
337337
338338 registry = LocalDfnRegistry (path = dfn_dir )
339339
340340 assert registry .schema_version == Version ("2" )
341341
342342 def test_components_property (self , dfn_dir ):
343343 """Test components property returns flat dict."""
344- from modflow_devtools .dfn import LocalDfnRegistry
344+ from modflow_devtools .dfns import LocalDfnRegistry
345345
346346 registry = LocalDfnRegistry (path = dfn_dir )
347347
@@ -389,7 +389,7 @@ class TestMakeRegistry:
389389
390390 def test_compute_file_hash (self , tmp_path ):
391391 """Test computing file hash."""
392- from modflow_devtools .dfn .make_registry import compute_file_hash
392+ from modflow_devtools .dfns .make_registry import compute_file_hash
393393
394394 test_file = tmp_path / "test.txt"
395395 test_file .write_text ("hello world" )
@@ -402,7 +402,7 @@ def test_compute_file_hash(self, tmp_path):
402402
403403 def test_scan_dfn_directory (self , dfn_dir ):
404404 """Test scanning a DFN directory."""
405- from modflow_devtools .dfn .make_registry import scan_dfn_directory
405+ from modflow_devtools .dfns .make_registry import scan_dfn_directory
406406
407407 files = scan_dfn_directory (dfn_dir )
408408
@@ -415,7 +415,7 @@ def test_generate_registry(self, dfn_dir, tmp_path):
415415 """Test generating a registry file."""
416416 import tomli
417417
418- from modflow_devtools .dfn .make_registry import generate_registry
418+ from modflow_devtools .dfns .make_registry import generate_registry
419419
420420 output_path = tmp_path / "dfns.toml"
421421
@@ -437,7 +437,7 @@ def test_generate_registry(self, dfn_dir, tmp_path):
437437
438438 def test_generate_registry_empty_dir (self , tmp_path ):
439439 """Test generating registry from empty directory raises ValueError."""
440- from modflow_devtools .dfn .make_registry import generate_registry
440+ from modflow_devtools .dfns .make_registry import generate_registry
441441
442442 with pytest .raises (ValueError , match = "No DFN files found" ):
443443 generate_registry (
@@ -447,7 +447,7 @@ def test_generate_registry_empty_dir(self, tmp_path):
447447
448448 def test_cli_help (self ):
449449 """Test CLI help output."""
450- from modflow_devtools .dfn .make_registry import main
450+ from modflow_devtools .dfns .make_registry import main
451451
452452 # --help should exit with 0
453453 with pytest .raises (SystemExit ) as exc_info :
@@ -456,7 +456,7 @@ def test_cli_help(self):
456456
457457 def test_cli_generate (self , dfn_dir , tmp_path ):
458458 """Test CLI generate command."""
459- from modflow_devtools .dfn .make_registry import main
459+ from modflow_devtools .dfns .make_registry import main
460460
461461 output_path = tmp_path / "dfns.toml"
462462
@@ -481,21 +481,21 @@ class TestCLI:
481481
482482 def test_main_help (self ):
483483 """Test CLI help output."""
484- from modflow_devtools .dfn .__main__ import main
484+ from modflow_devtools .dfns .__main__ import main
485485
486486 result = main ([])
487487 assert result == 0
488488
489489 def test_info_command (self ):
490490 """Test info command."""
491- from modflow_devtools .dfn .__main__ import main
491+ from modflow_devtools .dfns .__main__ import main
492492
493493 result = main (["info" ])
494494 assert result == 0
495495
496496 def test_clean_command_no_cache (self , tmp_path ):
497497 """Test clean command when cache doesn't exist."""
498- from modflow_devtools .dfn .__main__ import main
498+ from modflow_devtools .dfns .__main__ import main
499499
500500 # Patch get_cache_dir to return nonexistent directory
501501 with patch ("modflow_devtools.dfn.__main__.get_cache_dir" ) as mock_cache_dir :
@@ -506,7 +506,7 @@ def test_clean_command_no_cache(self, tmp_path):
506506
507507 def test_sync_command_no_registry (self ):
508508 """Test sync command when registry doesn't exist (expected to fail)."""
509- from modflow_devtools .dfn .__main__ import main
509+ from modflow_devtools .dfns .__main__ import main
510510
511511 # This should fail because MODFLOW 6 repo doesn't have the registry yet
512512 result = main (["sync" , "--ref" , "nonexistent-ref" ])
@@ -519,7 +519,7 @@ class TestRemoteDfnRegistry:
519519
520520 def test_init (self ):
521521 """Test RemoteDfnRegistry initialization."""
522- from modflow_devtools .dfn import RemoteDfnRegistry
522+ from modflow_devtools .dfns import RemoteDfnRegistry
523523
524524 registry = RemoteDfnRegistry (source = "modflow6" , ref = "develop" )
525525
@@ -528,7 +528,7 @@ def test_init(self):
528528
529529 def test_unknown_source_raises (self ):
530530 """Test that unknown source raises ValueError."""
531- from modflow_devtools .dfn import RemoteDfnRegistry
531+ from modflow_devtools .dfns import RemoteDfnRegistry
532532
533533 with pytest .raises (ValueError , match = "Unknown source" ):
534534 RemoteDfnRegistry (source = "nonexistent" , ref = "develop" )
@@ -584,7 +584,7 @@ def test_fetch_registry_not_found(self):
584584
585585 def test_init_with_repo_override (self ):
586586 """Test RemoteDfnRegistry with repo override."""
587- from modflow_devtools .dfn import RemoteDfnRegistry
587+ from modflow_devtools .dfns import RemoteDfnRegistry
588588
589589 registry = RemoteDfnRegistry (
590590 source = TEST_DFN_SOURCE ,
@@ -649,7 +649,7 @@ def test_sync_files(self):
649649
650650 def test_get_dfn (self ):
651651 """Test getting a DFN from the test repository."""
652- from modflow_devtools .dfn import Dfn
652+ from modflow_devtools .dfns import Dfn
653653 from modflow_devtools .dfns .registry import RemoteDfnRegistry
654654
655655 registry = RemoteDfnRegistry (
@@ -713,7 +713,7 @@ class TestModuleFunctions:
713713
714714 def test_list_components_local (self , dfn_dir ):
715715 """Test list_components with local registry."""
716- from modflow_devtools .dfn import LocalDfnRegistry
716+ from modflow_devtools .dfns import LocalDfnRegistry
717717
718718 registry = LocalDfnRegistry (path = dfn_dir )
719719 components = list (registry .spec .keys ())
0 commit comments