@@ -329,9 +329,9 @@ def test_get_root(self) -> None:
329329 del r ["_id" ] # Remove the internal database IDs; they aren't interesting here and a other tests check them
330330 assert result == [
331331 # These are the root tags, in alphabetical order:
332- {"value" : "Archaea" , "child_count" : 3 , "descendant_count" : 3 , ** common_fields },
333- {"value" : "Bacteria" , "child_count" : 2 , "descendant_count" : 2 , ** common_fields },
334- {"value" : "Eukaryota" , "child_count" : 5 , "descendant_count" : 5 , ** common_fields },
332+ {"value" : "Archaea" , "child_count" : 3 , ** common_fields },
333+ {"value" : "Bacteria" , "child_count" : 2 , ** common_fields },
334+ {"value" : "Eukaryota" , "child_count" : 5 , ** common_fields },
335335 ]
336336
337337 def test_get_child_tags_one_level (self ) -> None :
@@ -345,11 +345,11 @@ def test_get_child_tags_one_level(self) -> None:
345345 del r ["_id" ] # Remove the internal database IDs; they aren't interesting here and a other tests check them
346346 assert result == [
347347 # These are the Eukaryota tags, in alphabetical order:
348- {"value" : "Animalia" , "child_count" : 7 , "descendant_count" : 7 , ** common_fields },
349- {"value" : "Fungi" , "child_count" : 0 , "descendant_count" : 0 , ** common_fields },
350- {"value" : "Monera" , "child_count" : 0 , "descendant_count" : 0 , ** common_fields },
351- {"value" : "Plantae" , "child_count" : 0 , "descendant_count" : 0 , ** common_fields },
352- {"value" : "Protista" , "child_count" : 0 , "descendant_count" : 0 , ** common_fields },
348+ {"value" : "Animalia" , "child_count" : 7 , ** common_fields },
349+ {"value" : "Fungi" , "child_count" : 0 , ** common_fields },
350+ {"value" : "Monera" , "child_count" : 0 , ** common_fields },
351+ {"value" : "Plantae" , "child_count" : 0 , ** common_fields },
352+ {"value" : "Protista" , "child_count" : 0 , ** common_fields },
353353 ]
354354
355355 def test_get_grandchild_tags_one_level (self ) -> None :
@@ -363,13 +363,13 @@ def test_get_grandchild_tags_one_level(self) -> None:
363363 del r ["_id" ] # Remove the internal database IDs; they aren't interesting here and a other tests check them
364364 assert result == [
365365 # These are the Eukaryota tags, in alphabetical order:
366- {"value" : "Arthropoda" , "child_count" : 0 , "descendant_count" : 0 , ** common_fields },
367- {"value" : "Chordata" , "child_count" : 1 , "descendant_count" : 1 , ** common_fields },
368- {"value" : "Cnidaria" , "child_count" : 0 , "descendant_count" : 0 , ** common_fields },
369- {"value" : "Ctenophora" , "child_count" : 0 , "descendant_count" : 0 , ** common_fields },
370- {"value" : "Gastrotrich" , "child_count" : 0 , "descendant_count" : 0 , ** common_fields },
371- {"value" : "Placozoa" , "child_count" : 0 , "descendant_count" : 0 , ** common_fields },
372- {"value" : "Porifera" , "child_count" : 0 , "descendant_count" : 0 , ** common_fields },
366+ {"value" : "Arthropoda" , "child_count" : 0 , ** common_fields },
367+ {"value" : "Chordata" , "child_count" : 1 , ** common_fields },
368+ {"value" : "Cnidaria" , "child_count" : 0 , ** common_fields },
369+ {"value" : "Ctenophora" , "child_count" : 0 , ** common_fields },
370+ {"value" : "Gastrotrich" , "child_count" : 0 , ** common_fields },
371+ {"value" : "Placozoa" , "child_count" : 0 , ** common_fields },
372+ {"value" : "Porifera" , "child_count" : 0 , ** common_fields },
373373 ]
374374
375375 def test_get_depth_1_search_term (self ) -> None :
@@ -381,7 +381,6 @@ def test_get_depth_1_search_term(self) -> None:
381381 {
382382 "value" : "Archaea" ,
383383 "child_count" : 3 ,
384- "descendant_count" : 3 ,
385384 "depth" : 0 ,
386385 "usage_count" : 0 ,
387386 "parent_value" : None ,
@@ -400,7 +399,6 @@ def test_get_depth_1_child_search_term(self) -> None:
400399 {
401400 "value" : "Archaebacteria" ,
402401 "child_count" : 0 ,
403- "descendant_count" : 0 ,
404402 "depth" : 1 ,
405403 "parent_value" : "Bacteria" ,
406404 "external_id" : None ,
@@ -511,7 +509,6 @@ def test_tags_deep(self) -> None:
511509 "depth" : 3 ,
512510 "usage_count" : 0 ,
513511 "child_count" : 0 ,
514- "descendant_count" : 0 ,
515512 "external_id" : None ,
516513 "_id" : 21 , # These IDs are hard-coded in the test fixture file
517514 }
0 commit comments