MCPcopy Create free account

hub / github.com/pytest-dev/pytest-bdd / functions

Functions291 in github.com/pytest-dev/pytest-bdd

Functiontest_example_params
Test example params are rendered where necessary: * Step names * Docstring * Datatables
tests/feature/test_scenario.py:202
Functiontest_feature_path_by_param_not_found
As param takes precedence even if ini config is correct it should fail if passed param is incorrect
tests/feature/test_feature_base_dir.py:40
Functiontest_feature_path_by_param_ok
If ini config is incorrect but param path is fine it should be able to find features
tests/feature/test_feature_base_dir.py:51
Functiontest_feature_path_not_found
Test feature base dir.
tests/feature/test_feature_base_dir.py:11
Functiontest_feature_path_ok
(pytester)
tests/feature/test_feature_base_dir.py:19
Functiontest_feature_path_ok_running_outside_rootdir
(pytester)
tests/feature/test_feature_base_dir.py:27
Functiontest_forward_slash_in_params
Test parametrised scenario when the parameter contains a slash, such in a URL.
tests/feature/test_outline.py:278
Functiontest_generate
Test if the code is generated by a given feature.
tests/scripts/test_generate.py:12
Functiontest_generate_missing
Test generate missing command.
tests/generation/test_generate_missing.py:18
Functiontest_generate_missing_with_step_parsers
Test that step parsers are correctly discovered and won't be part of the missing steps.
tests/generation/test_generate_missing.py:88
Functiontest_generate_with_quotes
Test that code generation escapes quote characters properly.
tests/scripts/test_generate.py:81
Functiontest_given_injection
(pytester)
tests/steps/test_given.py:6
Functiontest_given_when_then_delegate_to_step
Test that @given, @when, @then just delegate the work to @step(...). This way we don't have to repeat integration tests for each step decorator.
tests/steps/test_common.py:12
Functiontest_global_when_step
Test when step defined in the parent conftest.
tests/library/test_parent.py:64
Functiontest_improper_initial_keyword
Test first step using incorrect initial keyword.
tests/parser/test_errors.py:218
Functiontest_improper_step_error
Test improper step without keyword.
tests/parser/test_errors.py:190
Functiontest_item_collection_does_not_break_on_non_function_items
Regression test for https://github.com/pytest-dev/pytest-bdd/issues/317
tests/test_hooks.py:50
Functiontest_keywords_used_outside_steps
Correctly identify when keyword is used for steps and when it's used for other cases.
tests/feature/test_steps.py:703
Functiontest_local
Test locally overridden fixtures.
tests/library/test_parent.py:173
Functiontest_local_variables_should_be_displayed_when_showlocals_option_is_used
(pytester)
tests/feature/test_gherkin_terminal_reporter.py:153
Functiontest_lower_case_and
(pytester)
tests/feature/test_steps.py:625
Functiontest_main
Test if main command shows help when called without the subcommand.
tests/scripts/test_main.py:12
Functiontest_migrate
Test if the code is migrated by a given file mask.
tests/scripts/test_migrate.py:12
Functiontest_misplaced_rule_error
Test misplaced or incorrectly formatted Rule.
tests/parser/test_errors.py:156
Functiontest_misplaced_scenario_error
Test misplaced or incorrect Scenario keywords.
tests/parser/test_errors.py:108
Functiontest_multilanguage_support
Test multilanguage support.
tests/feature/test_scenario.py:316
Functiontest_multiline_tags
(pytester)
tests/feature/test_tags.py:200
Functiontest_multiple_backgrounds_error
Test multiple backgrounds in a single feature.
tests/parser/test_errors.py:73
Functiontest_multiple_features_error
Test multiple features in a single feature file.
tests/parser/test_errors.py:4
Functiontest_multiple_features_single_file
Test validation error when multiple features are placed in a single file.
tests/feature/test_wrong.py:6
Functiontest_multiple_given
Using the same given fixture raises an error.
tests/feature/test_steps.py:310
Functiontest_multiple_outlined
(pytester)
tests/feature/test_outline.py:82
Functiontest_no_scenarios
Test no scenarios defined in the feature file.
tests/feature/test_no_scenario.py:6
Functiontest_outline_with_escaped_pipes
Test parametrized feature example table with escaped pipe characters in input.
tests/feature/test_outline.py:223
Functiontest_outlined
(pytester)
tests/feature/test_outline.py:35
Functiontest_outlined_with_other_fixtures
Test outlined scenario also using other parametrized fixture.
tests/feature/test_outline.py:174
Functiontest_parent
Test parent given is collected. Both fixtures come from the parent conftest.
tests/library/test_parent.py:11
Functiontest_parser
()
tests/parser/test_parser.py:23
Functiontest_pytest_bdd_after_scenario_called_after_scenario
Regression test for https://github.com/pytest-dev/pytest-bdd/pull/577
tests/test_hooks.py:82
Functiontest_pytest_unconfigure_without_configure
Simulate a plugin forcing an exit during configuration before bdd is configured https://github.com/pytest-dev/pytest-bdd/issues/362
tests/test_hooks.py:140
Functiontest_python_name_generator
Test python name generator function.
tests/generation/test_generate_missing.py:9
Functiontest_reuse_same_step_different_converters
(pytester)
tests/args/test_common.py:6
Functiontest_right_aligned_steps
Parser correctly handles steps that are not left-aligned
tests/feature/test_steps.py:670
Functiontest_rule_example_format
(pytester)
tests/feature/test_rule_example_format.py:4
Functiontest_rule_example_format_uses_correct_keywords
(pytester)
tests/feature/test_gherkin_terminal_reporter.py:302
Functiontest_scenario_alias_keywords_are_accepted
Test that aliases for various keywords are accepted and reported correctly. see https://cucumber.io/docs/gherkin/reference/
tests/feature/test_gherkin_terminal_reporter.py:241
Functiontest_scenario_comments
Test comments inside scenario.
tests/feature/test_scenario.py:39
Functiontest_scenario_not_decorator
Test scenario function is used not as decorator.
tests/feature/test_scenario.py:101
Functiontest_scenario_not_found
Test the situation when scenario is not found.
tests/feature/test_scenario.py:8
Functiontest_scenario_with_empty_example_values
(pytester)
tests/feature/test_outline_empty_values.py:30
Functiontest_scenarios
Test scenarios shortcut (used together with @scenario for individual test override).
tests/feature/test_scenarios.py:6
Functiontest_scenarios_none_found
Test scenarios shortcut when no scenarios found.
tests/feature/test_scenarios.py:79
Functiontest_simple
Test scenario decorator with a standard usage.
tests/feature/test_scenario.py:125
Functiontest_step_alias
(pytester)
tests/feature/test_alias.py:6
Functiontest_step_catches_all
Test that the @step(...) decorator works for all kind of steps.
tests/steps/test_common.py:320
Functiontest_step_definitions_found_using_main
Issue 173: Ensure step definitions are found when using pytest.main.
tests/scripts/test_main.py:22
Functiontest_step_function_can_be_decorated_multiple_times
(pytester)
tests/feature/test_steps.py:75
Functiontest_step_function_multiple_target_fixtures
(pytester)
tests/steps/test_common.py:33
Functiontest_step_function_target_fixture_redefined
(pytester)
tests/steps/test_common.py:81
Functiontest_step_functions_same_parser
(pytester)
tests/steps/test_common.py:123
Functiontest_step_hooks
When step fails.
tests/feature/test_steps.py:352
Functiontest_step_outside_scenario_or_background_error
Test step outside of a Scenario or Background.
tests/parser/test_errors.py:35
Functiontest_step_parameters_should_be_replaced_by_their_values
(pytester)
tests/feature/test_gherkin_terminal_reporter.py:188
Functiontest_step_parser_argument_not_in_function_signature_does_not_fail
Test that if the step parser defines an argument, but step function does not accept it, then it does not fail and the params is just not filled.
tests/feature/test_scenario.py:289
Functiontest_step_trace
Test step trace.
tests/feature/test_cucumber_json.py:33
Functiontest_step_trace
Test step trace.
tests/feature/test_report.py:19
Functiontest_step_trace
Test step trace.
tests/feature/test_steps.py:463
Functiontest_steps
(pytester)
tests/feature/test_steps.py:4
Functiontest_steps_in_feature_file_have_unicode
(pytester)
tests/steps/test_unicode.py:6
Functiontest_steps_in_py_file_have_unicode
(pytester)
tests/steps/test_unicode.py:58
Functiontest_steps_with_datatable_missing_argument_in_step
(pytester)
tests/datatable/test_datatable.py:156
Functiontest_steps_with_datatables
(pytester)
tests/datatable/test_datatable.py:6
Functiontest_steps_with_docstrings
(pytester)
tests/steps/test_docstring.py:6
Functiontest_steps_with_missing_docstring
(pytester)
tests/steps/test_docstring.py:83
Functiontest_steps_with_yield
Test that steps definition containing a yield statement work the same way as pytest fixture do, that is the code after the yield is executed durin
tests/feature/test_steps.py:577
Functiontest_string_steps_dont_take_precedence
Test that normal steps don't take precedence over the other steps.
tests/args/test_common.py:60
Functiontest_tags_after_background_issue_160
Make sure using a tag after background works.
tests/feature/test_tags.py:73
Functiontest_tags_selector
Test tests selection by tags.
tests/feature/test_tags.py:6
Functiontest_then_after_given
(pytester)
tests/feature/test_steps.py:220
Functiontest_unicode_characters
Test generating code with unicode characters. Primary purpose is to ensure compatibility with Python2.
tests/scripts/test_generate.py:158
Functiontest_unused_params
Test parametrized scenario when the test function lacks parameters.
tests/feature/test_outline.py:137
Functiontest_user_implements_a_step_generator
Test advanced use cases, like the implementation of custom step generators.
tests/steps/test_common.py:171
Functiontest_uses_correct_step_in_the_hierarchy
Test regression found in issue #524, where we couldn't find the correct step implemntation in the hierarchy of files/folder as expected.
tests/library/test_parent.py:234
Functiontest_variable_reuse
Test example parameter name and step arg do not redefine each other's value if the same name is used for both in different steps.
tests/feature/test_outline.py:325
Functiontest_verbose_mode_should_display_feature_and_scenario_names_instead_of_test_names_in_a_single_line
(pytester)
tests/feature/test_gherkin_terminal_reporter.py:54
Functiontest_verbose_mode_should_preserve_displaying_regular_tests_as_usual
(pytester)
tests/feature/test_gherkin_terminal_reporter.py:63
Functiontest_when_first
(pytester)
tests/feature/test_steps.py:180
Functiontest_when_function_name_same_as_step_name
(pytester)
tests/feature/test_same_function_name.py:6
Functionthen
Then step decorator. :param name: Step name or a parser object. :param converters: Optional `dict` of the argument or parameter converters in
src/pytest_bdd/steps.py:116
Functionunconfigure
(config: Config)
src/pytest_bdd/cucumber_json.py:42
Functionwhen
When step decorator. :param name: Step name or a parser object. :param converters: Optional `dict` of the argument or parameter converters in
src/pytest_bdd/steps.py:97
← previous201–291 of 291, ranked by callers