@@ -143,7 +143,7 @@ def pytest_bdd_after_scenario(request, feature, scenario):
143143
144144def pytest_bdd_apply_tag (tag , function ):
145145 """Register tags as custom markers and skip test for '@skip' ones."""
146- skip_tags = {"with-pagination" }
146+ skip_tags = {}
147147 if tag in skip_tags :
148148 marker = pytest .mark .skip (reason = f"skipped because '{ tag } ' in { skip_tags } " )
149149 marker (function )
@@ -520,7 +520,11 @@ def record_value(schema):
520520def execute_request (context ):
521521 """Execute the prepared request."""
522522 assert context ["api_request" ]["operation_id" ] is not None
523- # NOTE add undo
523+
524+
525+ @when ("the request with pagination is sent" )
526+ def execute_request_with_pagination (context ):
527+ context ["pagination" ] = True
524528
525529
526530@then (parsers .parse ("the response status is {status:d} {description}" ))
@@ -548,6 +552,11 @@ def expect_equal_length(context, response_path, fixture_length):
548552 """Check the length of a response attribute."""
549553
550554
555+ @then (parsers .parse ("the response has {fixture_length:d} items" ))
556+ def expect_equal_response_items (context , fixture_length ):
557+ """Check the size of a response."""
558+
559+
551560@then (parsers .parse ('the response "{response_path}" is false' ))
552561def expect_false (context , response_path ):
553562 """Check that a response attribute is false."""
0 commit comments