@@ -424,7 +424,7 @@ def create_function_page_props(self, test_functions: Dict["str", List[Item]]) ->
424
424
)
425
425
426
426
is_benchmark = items [0 ].get_closest_marker ("benchmark" ) is not None
427
- is_state = items [0 ].get_closest_marker ("state " ) is not None
427
+ is_stateful = items [0 ].get_closest_marker ("stateful " ) is not None
428
428
429
429
self .function_page_props [function_id ] = FunctionPageProps (
430
430
title = get_test_function_name (items [0 ]),
@@ -441,7 +441,7 @@ def create_function_page_props(self, test_functions: Dict["str", List[Item]]) ->
441
441
html_static_page_target = f"./{ get_test_function_name (items [0 ])} .html" ,
442
442
mkdocs_function_page_target = f"./{ get_test_function_name (items [0 ])} /" ,
443
443
is_benchmark = is_benchmark ,
444
- is_state = is_state ,
444
+ is_stateful = is_stateful ,
445
445
)
446
446
447
447
def create_module_page_props (self ) -> None :
@@ -457,7 +457,7 @@ def create_module_page_props(self) -> None:
457
457
pytest_node_id = str (module_path ),
458
458
package_name = get_import_path (module_path ),
459
459
is_benchmark = function_page .is_benchmark ,
460
- is_state = function_page .is_state ,
460
+ is_stateful = function_page .is_stateful ,
461
461
test_functions = [
462
462
TestFunction (
463
463
name = function_page .title ,
@@ -471,8 +471,8 @@ def create_module_page_props(self) -> None:
471
471
existing_module_page = self .module_page_props [str (function_page .path )]
472
472
if function_page .is_benchmark :
473
473
existing_module_page .is_benchmark = True
474
- if function_page .is_state :
475
- existing_module_page .is_state = True
474
+ if function_page .is_stateful :
475
+ existing_module_page .is_stateful = True
476
476
existing_module_page .test_functions .append (
477
477
TestFunction (
478
478
name = function_page .title ,
@@ -510,8 +510,8 @@ def add_directory_page_props(self) -> None:
510
510
for module_page in self .module_page_props .values ()
511
511
if directory in module_page .path .parents or module_page .path .parent == directory
512
512
)
513
- is_state = any (
514
- module_page .is_state
513
+ is_stateful = any (
514
+ module_page .is_stateful
515
515
for module_page in self .module_page_props .values ()
516
516
if directory in module_page .path .parents or module_page .path .parent == directory
517
517
)
@@ -526,7 +526,7 @@ def add_directory_page_props(self) -> None:
526
526
target_or_valid_fork = fork .capitalize () if fork else "Unknown" ,
527
527
package_name = get_import_path (directory ), # init.py will be used for docstrings
528
528
is_benchmark = is_benchmark ,
529
- is_state = is_state ,
529
+ is_stateful = is_stateful ,
530
530
)
531
531
532
532
def find_files_within_collection_scope (self , file_pattern : str ) -> List [Path ]:
0 commit comments