@@ -431,7 +431,7 @@ def create_function_page_props(self, test_functions: Dict["str", List[Item]]) ->
431
431
)
432
432
433
433
is_benchmark = items [0 ].get_closest_marker ("benchmark" ) is not None
434
- is_state = items [0 ].get_closest_marker ("state " ) is not None
434
+ is_stateful = items [0 ].get_closest_marker ("stateful " ) is not None
435
435
436
436
self .function_page_props [function_id ] = FunctionPageProps (
437
437
title = get_test_function_name (items [0 ]),
@@ -448,7 +448,7 @@ def create_function_page_props(self, test_functions: Dict["str", List[Item]]) ->
448
448
html_static_page_target = f"./{ get_test_function_name (items [0 ])} .html" ,
449
449
mkdocs_function_page_target = f"./{ get_test_function_name (items [0 ])} /" ,
450
450
is_benchmark = is_benchmark ,
451
- is_state = is_state ,
451
+ is_stateful = is_stateful ,
452
452
)
453
453
454
454
def create_module_page_props (self ) -> None :
@@ -464,7 +464,7 @@ def create_module_page_props(self) -> None:
464
464
pytest_node_id = str (module_path ),
465
465
package_name = get_import_path (module_path ),
466
466
is_benchmark = function_page .is_benchmark ,
467
- is_state = function_page .is_state ,
467
+ is_stateful = function_page .is_stateful ,
468
468
test_functions = [
469
469
TestFunction (
470
470
name = function_page .title ,
@@ -478,8 +478,8 @@ def create_module_page_props(self) -> None:
478
478
existing_module_page = self .module_page_props [str (function_page .path )]
479
479
if function_page .is_benchmark :
480
480
existing_module_page .is_benchmark = True
481
- if function_page .is_state :
482
- existing_module_page .is_state = True
481
+ if function_page .is_stateful :
482
+ existing_module_page .is_stateful = True
483
483
existing_module_page .test_functions .append (
484
484
TestFunction (
485
485
name = function_page .title ,
@@ -518,8 +518,8 @@ def add_directory_page_props(self) -> None:
518
518
for module_page in self .module_page_props .values ()
519
519
if directory in module_page .path .parents or module_page .path .parent == directory
520
520
)
521
- is_state = any (
522
- module_page .is_state
521
+ is_stateful = any (
522
+ module_page .is_stateful
523
523
for module_page in self .module_page_props .values ()
524
524
if directory in module_page .path .parents or module_page .path .parent == directory
525
525
)
@@ -536,7 +536,7 @@ def add_directory_page_props(self) -> None:
536
536
# init.py will be used for docstrings
537
537
package_name = get_import_path (directory ),
538
538
is_benchmark = is_benchmark ,
539
- is_state = is_state ,
539
+ is_stateful = is_stateful ,
540
540
)
541
541
542
542
def find_files_within_collection_scope (self , file_pattern : str ) -> List [Path ]:
0 commit comments