busser-behave 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.cane +0 -0
- data/.gitignore +17 -0
- data/.tailor +4 -0
- data/.travis.yml +11 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +3 -0
- data/LICENSE +15 -0
- data/README.md +41 -0
- data/Rakefile +68 -0
- data/busser-behave.gemspec +30 -0
- data/features/plugin_install_command.feature +11 -0
- data/features/plugin_list_command.feature +8 -0
- data/features/support/env.rb +13 -0
- data/features/test_command.feature +31 -0
- data/lib/busser/behave/version.rb +26 -0
- data/lib/busser/runner_plugin/behave.rb +37 -0
- data/vendor/behave/CHANGES.rst +483 -0
- data/vendor/behave/LICENSE +23 -0
- data/vendor/behave/MANIFEST.in +37 -0
- data/vendor/behave/PROJECT_INFO.rst +21 -0
- data/vendor/behave/README.rst +112 -0
- data/vendor/behave/VERSION.txt +1 -0
- data/vendor/behave/behave.ini +22 -0
- data/vendor/behave/behave/__init__.py +30 -0
- data/vendor/behave/behave/__main__.py +187 -0
- data/vendor/behave/behave/_stepimport.py +185 -0
- data/vendor/behave/behave/_types.py +134 -0
- data/vendor/behave/behave/api/__init__.py +7 -0
- data/vendor/behave/behave/api/async_step.py +283 -0
- data/vendor/behave/behave/capture.py +227 -0
- data/vendor/behave/behave/compat/__init__.py +5 -0
- data/vendor/behave/behave/compat/collections.py +20 -0
- data/vendor/behave/behave/configuration.py +788 -0
- data/vendor/behave/behave/contrib/__init__.py +0 -0
- data/vendor/behave/behave/contrib/scenario_autoretry.py +73 -0
- data/vendor/behave/behave/formatter/__init__.py +12 -0
- data/vendor/behave/behave/formatter/_builtins.py +39 -0
- data/vendor/behave/behave/formatter/_registry.py +135 -0
- data/vendor/behave/behave/formatter/ansi_escapes.py +91 -0
- data/vendor/behave/behave/formatter/base.py +200 -0
- data/vendor/behave/behave/formatter/formatters.py +57 -0
- data/vendor/behave/behave/formatter/json.py +253 -0
- data/vendor/behave/behave/formatter/null.py +12 -0
- data/vendor/behave/behave/formatter/plain.py +158 -0
- data/vendor/behave/behave/formatter/pretty.py +351 -0
- data/vendor/behave/behave/formatter/progress.py +287 -0
- data/vendor/behave/behave/formatter/rerun.py +114 -0
- data/vendor/behave/behave/formatter/sphinx_steps.py +372 -0
- data/vendor/behave/behave/formatter/sphinx_util.py +118 -0
- data/vendor/behave/behave/formatter/steps.py +497 -0
- data/vendor/behave/behave/formatter/tags.py +178 -0
- data/vendor/behave/behave/i18n.py +614 -0
- data/vendor/behave/behave/importer.py +102 -0
- data/vendor/behave/behave/json_parser.py +264 -0
- data/vendor/behave/behave/log_capture.py +233 -0
- data/vendor/behave/behave/matchers.py +402 -0
- data/vendor/behave/behave/model.py +1737 -0
- data/vendor/behave/behave/model_core.py +416 -0
- data/vendor/behave/behave/model_describe.py +105 -0
- data/vendor/behave/behave/parser.py +615 -0
- data/vendor/behave/behave/reporter/__init__.py +0 -0
- data/vendor/behave/behave/reporter/base.py +45 -0
- data/vendor/behave/behave/reporter/junit.py +473 -0
- data/vendor/behave/behave/reporter/summary.py +94 -0
- data/vendor/behave/behave/runner.py +753 -0
- data/vendor/behave/behave/runner_util.py +417 -0
- data/vendor/behave/behave/step_registry.py +112 -0
- data/vendor/behave/behave/tag_expression.py +111 -0
- data/vendor/behave/behave/tag_matcher.py +465 -0
- data/vendor/behave/behave/textutil.py +137 -0
- data/vendor/behave/behave/userdata.py +130 -0
- data/vendor/behave/behave4cmd0/__all_steps__.py +12 -0
- data/vendor/behave/behave4cmd0/__init__.py +5 -0
- data/vendor/behave/behave4cmd0/__setup.py +11 -0
- data/vendor/behave/behave4cmd0/command_shell.py +216 -0
- data/vendor/behave/behave4cmd0/command_shell_proc.py +256 -0
- data/vendor/behave/behave4cmd0/command_steps.py +532 -0
- data/vendor/behave/behave4cmd0/command_util.py +147 -0
- data/vendor/behave/behave4cmd0/failing_steps.py +49 -0
- data/vendor/behave/behave4cmd0/log/__init__.py +1 -0
- data/vendor/behave/behave4cmd0/log/steps.py +395 -0
- data/vendor/behave/behave4cmd0/note_steps.py +29 -0
- data/vendor/behave/behave4cmd0/passing_steps.py +36 -0
- data/vendor/behave/behave4cmd0/pathutil.py +146 -0
- data/vendor/behave/behave4cmd0/setup_command_shell.py +24 -0
- data/vendor/behave/behave4cmd0/textutil.py +304 -0
- data/vendor/behave/bin/behave +44 -0
- data/vendor/behave/bin/behave.cmd +10 -0
- data/vendor/behave/bin/behave.junit_filter.py +85 -0
- data/vendor/behave/bin/behave.step_durations.py +163 -0
- data/vendor/behave/bin/behave2cucumber_json.py +63 -0
- data/vendor/behave/bin/behave_cmd.py +44 -0
- data/vendor/behave/bin/convert_i18n_yaml.py +77 -0
- data/vendor/behave/bin/explore_platform_encoding.py +24 -0
- data/vendor/behave/bin/i18n.yml +621 -0
- data/vendor/behave/bin/invoke +8 -0
- data/vendor/behave/bin/invoke.cmd +9 -0
- data/vendor/behave/bin/json.format.py +167 -0
- data/vendor/behave/bin/jsonschema_validate.py +122 -0
- data/vendor/behave/bin/make_localpi.py +279 -0
- data/vendor/behave/bin/project_bootstrap.sh +30 -0
- data/vendor/behave/bin/toxcmd.py +270 -0
- data/vendor/behave/bin/toxcmd3.py +270 -0
- data/vendor/behave/conftest.py +27 -0
- data/vendor/behave/docs/Makefile +154 -0
- data/vendor/behave/docs/_static/agogo.css +501 -0
- data/vendor/behave/docs/_static/behave_logo.png +0 -0
- data/vendor/behave/docs/_static/behave_logo1.png +0 -0
- data/vendor/behave/docs/_static/behave_logo2.png +0 -0
- data/vendor/behave/docs/_static/behave_logo3.png +0 -0
- data/vendor/behave/docs/_themes/LICENSE +45 -0
- data/vendor/behave/docs/_themes/kr/layout.html +17 -0
- data/vendor/behave/docs/_themes/kr/relations.html +19 -0
- data/vendor/behave/docs/_themes/kr/static/flasky.css_t +480 -0
- data/vendor/behave/docs/_themes/kr/static/small_flask.css +90 -0
- data/vendor/behave/docs/_themes/kr/theme.conf +7 -0
- data/vendor/behave/docs/_themes/kr_small/layout.html +22 -0
- data/vendor/behave/docs/_themes/kr_small/static/flasky.css_t +287 -0
- data/vendor/behave/docs/_themes/kr_small/theme.conf +10 -0
- data/vendor/behave/docs/api.rst +408 -0
- data/vendor/behave/docs/appendix.rst +19 -0
- data/vendor/behave/docs/behave.rst +640 -0
- data/vendor/behave/docs/behave.rst-template +86 -0
- data/vendor/behave/docs/behave_ecosystem.rst +81 -0
- data/vendor/behave/docs/comparison.rst +85 -0
- data/vendor/behave/docs/conf.py +293 -0
- data/vendor/behave/docs/context_attributes.rst +66 -0
- data/vendor/behave/docs/django.rst +192 -0
- data/vendor/behave/docs/formatters.rst +61 -0
- data/vendor/behave/docs/gherkin.rst +673 -0
- data/vendor/behave/docs/index.rst +57 -0
- data/vendor/behave/docs/install.rst +60 -0
- data/vendor/behave/docs/more_info.rst +184 -0
- data/vendor/behave/docs/new_and_noteworthy.rst +18 -0
- data/vendor/behave/docs/new_and_noteworthy_v1.2.4.rst +11 -0
- data/vendor/behave/docs/new_and_noteworthy_v1.2.5.rst +814 -0
- data/vendor/behave/docs/new_and_noteworthy_v1.2.6.rst +255 -0
- data/vendor/behave/docs/parse_builtin_types.rst +59 -0
- data/vendor/behave/docs/philosophy.rst +235 -0
- data/vendor/behave/docs/regular_expressions.rst +71 -0
- data/vendor/behave/docs/related.rst +14 -0
- data/vendor/behave/docs/test_domains.rst +62 -0
- data/vendor/behave/docs/tutorial.rst +636 -0
- data/vendor/behave/docs/update_behave_rst.py +100 -0
- data/vendor/behave/etc/json/behave.json-schema +172 -0
- data/vendor/behave/etc/junit.xml/behave_junit.xsd +103 -0
- data/vendor/behave/etc/junit.xml/junit-4.xsd +92 -0
- data/vendor/behave/examples/async_step/README.txt +8 -0
- data/vendor/behave/examples/async_step/behave.ini +14 -0
- data/vendor/behave/examples/async_step/features/async_dispatch.feature +8 -0
- data/vendor/behave/examples/async_step/features/async_run.feature +6 -0
- data/vendor/behave/examples/async_step/features/environment.py +28 -0
- data/vendor/behave/examples/async_step/features/steps/async_dispatch_steps.py +26 -0
- data/vendor/behave/examples/async_step/features/steps/async_steps34.py +10 -0
- data/vendor/behave/examples/async_step/features/steps/async_steps35.py +10 -0
- data/vendor/behave/examples/async_step/testrun_example.async_dispatch.txt +11 -0
- data/vendor/behave/examples/async_step/testrun_example.async_run.txt +9 -0
- data/vendor/behave/examples/env_vars/README.rst +26 -0
- data/vendor/behave/examples/env_vars/behave.ini +15 -0
- data/vendor/behave/examples/env_vars/behave_run.output_example.txt +12 -0
- data/vendor/behave/examples/env_vars/features/env_var.feature +6 -0
- data/vendor/behave/examples/env_vars/features/steps/env_var_steps.py +38 -0
- data/vendor/behave/features/README.txt +12 -0
- data/vendor/behave/features/background.feature +392 -0
- data/vendor/behave/features/capture_stderr.feature +172 -0
- data/vendor/behave/features/capture_stdout.feature +125 -0
- data/vendor/behave/features/cmdline.lang_list.feature +33 -0
- data/vendor/behave/features/configuration.default_paths.feature +116 -0
- data/vendor/behave/features/context.global_params.feature +35 -0
- data/vendor/behave/features/context.local_params.feature +17 -0
- data/vendor/behave/features/directory_layout.advanced.feature +147 -0
- data/vendor/behave/features/directory_layout.basic.feature +75 -0
- data/vendor/behave/features/directory_layout.basic2.feature +87 -0
- data/vendor/behave/features/environment.py +53 -0
- data/vendor/behave/features/exploratory_testing.with_table.feature +141 -0
- data/vendor/behave/features/feature.description.feature +0 -0
- data/vendor/behave/features/feature.exclude_from_run.feature +96 -0
- data/vendor/behave/features/formatter.help.feature +30 -0
- data/vendor/behave/features/formatter.json.feature +420 -0
- data/vendor/behave/features/formatter.progress3.feature +235 -0
- data/vendor/behave/features/formatter.rerun.feature +296 -0
- data/vendor/behave/features/formatter.steps.feature +181 -0
- data/vendor/behave/features/formatter.steps_catalog.feature +100 -0
- data/vendor/behave/features/formatter.steps_doc.feature +140 -0
- data/vendor/behave/features/formatter.steps_usage.feature +404 -0
- data/vendor/behave/features/formatter.tags.feature +134 -0
- data/vendor/behave/features/formatter.tags_location.feature +183 -0
- data/vendor/behave/features/formatter.user_defined.feature +196 -0
- data/vendor/behave/features/i18n.unicode_problems.feature +445 -0
- data/vendor/behave/features/logcapture.clear_handlers.feature +114 -0
- data/vendor/behave/features/logcapture.feature +188 -0
- data/vendor/behave/features/logcapture.filter.feature +130 -0
- data/vendor/behave/features/logging.no_capture.feature +99 -0
- data/vendor/behave/features/logging.setup_format.feature +157 -0
- data/vendor/behave/features/logging.setup_level.feature +168 -0
- data/vendor/behave/features/logging.setup_with_configfile.feature +137 -0
- data/vendor/behave/features/parser.background.sad_cases.feature +129 -0
- data/vendor/behave/features/parser.feature.sad_cases.feature +144 -0
- data/vendor/behave/features/runner.abort_by_user.feature +305 -0
- data/vendor/behave/features/runner.continue_after_failed_step.feature +136 -0
- data/vendor/behave/features/runner.default_format.feature +175 -0
- data/vendor/behave/features/runner.dry_run.feature +184 -0
- data/vendor/behave/features/runner.feature_listfile.feature +223 -0
- data/vendor/behave/features/runner.hook_errors.feature +382 -0
- data/vendor/behave/features/runner.multiple_formatters.feature +285 -0
- data/vendor/behave/features/runner.scenario_autoretry.feature +131 -0
- data/vendor/behave/features/runner.select_files_by_regexp.example.feature +71 -0
- data/vendor/behave/features/runner.select_files_by_regexp.feature +84 -0
- data/vendor/behave/features/runner.select_scenarios_by_file_location.feature +403 -0
- data/vendor/behave/features/runner.select_scenarios_by_name.feature +289 -0
- data/vendor/behave/features/runner.select_scenarios_by_tag.feature +225 -0
- data/vendor/behave/features/runner.stop_after_failure.feature +122 -0
- data/vendor/behave/features/runner.tag_logic.feature +67 -0
- data/vendor/behave/features/runner.unknown_formatter.feature +23 -0
- data/vendor/behave/features/runner.use_stage_implementations.feature +126 -0
- data/vendor/behave/features/scenario.description.feature +171 -0
- data/vendor/behave/features/scenario.exclude_from_run.feature +217 -0
- data/vendor/behave/features/scenario_outline.basics.feature +100 -0
- data/vendor/behave/features/scenario_outline.improved.feature +177 -0
- data/vendor/behave/features/scenario_outline.name_annotation.feature +157 -0
- data/vendor/behave/features/scenario_outline.parametrized.feature +401 -0
- data/vendor/behave/features/scenario_outline.tagged_examples.feature +118 -0
- data/vendor/behave/features/step.async_steps.feature +225 -0
- data/vendor/behave/features/step.duplicated_step.feature +106 -0
- data/vendor/behave/features/step.execute_steps.feature +59 -0
- data/vendor/behave/features/step.execute_steps.with_table.feature +65 -0
- data/vendor/behave/features/step.import_other_step_module.feature +103 -0
- data/vendor/behave/features/step.pending_steps.feature +128 -0
- data/vendor/behave/features/step.undefined_steps.feature +307 -0
- data/vendor/behave/features/step.use_step_library.feature +44 -0
- data/vendor/behave/features/step_dialect.generic_steps.feature +189 -0
- data/vendor/behave/features/step_dialect.given_when_then.feature +89 -0
- data/vendor/behave/features/step_param.builtin_types.with_float.feature +239 -0
- data/vendor/behave/features/step_param.builtin_types.with_integer.feature +305 -0
- data/vendor/behave/features/step_param.custom_types.feature +134 -0
- data/vendor/behave/features/steps/behave_active_tags_steps.py +86 -0
- data/vendor/behave/features/steps/behave_context_steps.py +67 -0
- data/vendor/behave/features/steps/behave_model_tag_logic_steps.py +105 -0
- data/vendor/behave/features/steps/behave_model_util.py +105 -0
- data/vendor/behave/features/steps/behave_select_files_steps.py +83 -0
- data/vendor/behave/features/steps/behave_tag_expression_steps.py +166 -0
- data/vendor/behave/features/steps/behave_undefined_steps.py +101 -0
- data/vendor/behave/features/steps/use_steplib_behave4cmd.py +12 -0
- data/vendor/behave/features/summary.undefined_steps.feature +114 -0
- data/vendor/behave/features/tags.active_tags.feature +385 -0
- data/vendor/behave/features/tags.default_tags.feature +104 -0
- data/vendor/behave/features/tags.tag_expression.feature +105 -0
- data/vendor/behave/features/userdata.feature +331 -0
- data/vendor/behave/invoke.yaml +21 -0
- data/vendor/behave/issue.features/README.txt +17 -0
- data/vendor/behave/issue.features/environment.py +97 -0
- data/vendor/behave/issue.features/issue0030.feature +21 -0
- data/vendor/behave/issue.features/issue0031.feature +16 -0
- data/vendor/behave/issue.features/issue0032.feature +28 -0
- data/vendor/behave/issue.features/issue0035.feature +74 -0
- data/vendor/behave/issue.features/issue0040.feature +154 -0
- data/vendor/behave/issue.features/issue0041.feature +135 -0
- data/vendor/behave/issue.features/issue0042.feature +230 -0
- data/vendor/behave/issue.features/issue0044.feature +51 -0
- data/vendor/behave/issue.features/issue0046.feature +77 -0
- data/vendor/behave/issue.features/issue0052.feature +66 -0
- data/vendor/behave/issue.features/issue0059.feature +29 -0
- data/vendor/behave/issue.features/issue0063.feature +102 -0
- data/vendor/behave/issue.features/issue0064.feature +97 -0
- data/vendor/behave/issue.features/issue0065.feature +18 -0
- data/vendor/behave/issue.features/issue0066.feature +80 -0
- data/vendor/behave/issue.features/issue0067.feature +90 -0
- data/vendor/behave/issue.features/issue0069.feature +64 -0
- data/vendor/behave/issue.features/issue0072.feature +32 -0
- data/vendor/behave/issue.features/issue0073.feature +228 -0
- data/vendor/behave/issue.features/issue0075.feature +18 -0
- data/vendor/behave/issue.features/issue0077.feature +89 -0
- data/vendor/behave/issue.features/issue0080.feature +49 -0
- data/vendor/behave/issue.features/issue0081.feature +138 -0
- data/vendor/behave/issue.features/issue0083.feature +69 -0
- data/vendor/behave/issue.features/issue0084.feature +69 -0
- data/vendor/behave/issue.features/issue0085.feature +119 -0
- data/vendor/behave/issue.features/issue0092.feature +66 -0
- data/vendor/behave/issue.features/issue0096.feature +173 -0
- data/vendor/behave/issue.features/issue0099.feature +130 -0
- data/vendor/behave/issue.features/issue0109.feature +60 -0
- data/vendor/behave/issue.features/issue0111.feature +53 -0
- data/vendor/behave/issue.features/issue0112.feature +64 -0
- data/vendor/behave/issue.features/issue0114.feature +118 -0
- data/vendor/behave/issue.features/issue0116.feature +71 -0
- data/vendor/behave/issue.features/issue0125.feature +49 -0
- data/vendor/behave/issue.features/issue0127.feature +64 -0
- data/vendor/behave/issue.features/issue0139.feature +67 -0
- data/vendor/behave/issue.features/issue0142.feature +37 -0
- data/vendor/behave/issue.features/issue0143.feature +54 -0
- data/vendor/behave/issue.features/issue0145.feature +63 -0
- data/vendor/behave/issue.features/issue0148.feature +105 -0
- data/vendor/behave/issue.features/issue0152.feature +52 -0
- data/vendor/behave/issue.features/issue0159.feature +74 -0
- data/vendor/behave/issue.features/issue0162.feature +86 -0
- data/vendor/behave/issue.features/issue0171.feature +16 -0
- data/vendor/behave/issue.features/issue0172.feature +51 -0
- data/vendor/behave/issue.features/issue0175.feature +91 -0
- data/vendor/behave/issue.features/issue0177.feature +40 -0
- data/vendor/behave/issue.features/issue0181.feature +36 -0
- data/vendor/behave/issue.features/issue0184.feature +144 -0
- data/vendor/behave/issue.features/issue0186.feature +12 -0
- data/vendor/behave/issue.features/issue0188.feature +60 -0
- data/vendor/behave/issue.features/issue0191.feature +178 -0
- data/vendor/behave/issue.features/issue0194.feature +215 -0
- data/vendor/behave/issue.features/issue0197.feature +11 -0
- data/vendor/behave/issue.features/issue0216.feature +129 -0
- data/vendor/behave/issue.features/issue0226.feature +51 -0
- data/vendor/behave/issue.features/issue0228.feature +41 -0
- data/vendor/behave/issue.features/issue0230.feature +46 -0
- data/vendor/behave/issue.features/issue0231.feature +77 -0
- data/vendor/behave/issue.features/issue0238.feature +52 -0
- data/vendor/behave/issue.features/issue0251.feature +15 -0
- data/vendor/behave/issue.features/issue0280.feature +118 -0
- data/vendor/behave/issue.features/issue0288.feature +95 -0
- data/vendor/behave/issue.features/issue0300.feature +49 -0
- data/vendor/behave/issue.features/issue0302.feature +91 -0
- data/vendor/behave/issue.features/issue0309.feature +52 -0
- data/vendor/behave/issue.features/issue0330.feature +124 -0
- data/vendor/behave/issue.features/issue0349.feature +9 -0
- data/vendor/behave/issue.features/issue0361.feature +79 -0
- data/vendor/behave/issue.features/issue0383.feature +76 -0
- data/vendor/behave/issue.features/issue0384.feature +103 -0
- data/vendor/behave/issue.features/issue0385.feature +109 -0
- data/vendor/behave/issue.features/issue0424.feature +66 -0
- data/vendor/behave/issue.features/issue0446.feature +116 -0
- data/vendor/behave/issue.features/issue0449.feature +42 -0
- data/vendor/behave/issue.features/issue0453.feature +42 -0
- data/vendor/behave/issue.features/issue0457.feature +65 -0
- data/vendor/behave/issue.features/issue0462.feature +38 -0
- data/vendor/behave/issue.features/issue0476.feature +39 -0
- data/vendor/behave/issue.features/issue0487.feature +92 -0
- data/vendor/behave/issue.features/issue0506.feature +77 -0
- data/vendor/behave/issue.features/issue0510.feature +51 -0
- data/vendor/behave/issue.features/requirements.txt +12 -0
- data/vendor/behave/issue.features/steps/ansi_steps.py +20 -0
- data/vendor/behave/issue.features/steps/behave_hooks_steps.py +10 -0
- data/vendor/behave/issue.features/steps/use_steplib_behave4cmd.py +13 -0
- data/vendor/behave/more.features/formatter.json.validate_output.feature +37 -0
- data/vendor/behave/more.features/steps/tutorial_steps.py +16 -0
- data/vendor/behave/more.features/steps/use_steplib_behave4cmd.py +7 -0
- data/vendor/behave/more.features/tutorial.feature +6 -0
- data/vendor/behave/py.requirements/README.txt +5 -0
- data/vendor/behave/py.requirements/all.txt +16 -0
- data/vendor/behave/py.requirements/basic.txt +21 -0
- data/vendor/behave/py.requirements/develop.txt +28 -0
- data/vendor/behave/py.requirements/docs.txt +6 -0
- data/vendor/behave/py.requirements/json.txt +7 -0
- data/vendor/behave/py.requirements/more_py26.txt +8 -0
- data/vendor/behave/py.requirements/testing.txt +10 -0
- data/vendor/behave/pytest.ini +24 -0
- data/vendor/behave/setup.cfg +29 -0
- data/vendor/behave/setup.py +118 -0
- data/vendor/behave/setuptools_behave.py +130 -0
- data/vendor/behave/tasks/__behave.py +45 -0
- data/vendor/behave/tasks/__init__.py +55 -0
- data/vendor/behave/tasks/__main__.py +70 -0
- data/vendor/behave/tasks/_setup.py +135 -0
- data/vendor/behave/tasks/_vendor/README.rst +35 -0
- data/vendor/behave/tasks/_vendor/invoke.zip +0 -0
- data/vendor/behave/tasks/_vendor/path.py +1725 -0
- data/vendor/behave/tasks/_vendor/pathlib.py +1280 -0
- data/vendor/behave/tasks/_vendor/six.py +868 -0
- data/vendor/behave/tasks/clean.py +246 -0
- data/vendor/behave/tasks/docs.py +97 -0
- data/vendor/behave/tasks/requirements.txt +17 -0
- data/vendor/behave/tasks/test.py +192 -0
- data/vendor/behave/test/__init__.py +0 -0
- data/vendor/behave/test/_importer_candidate.py +3 -0
- data/vendor/behave/test/reporters/__init__.py +0 -0
- data/vendor/behave/test/reporters/test_summary.py +240 -0
- data/vendor/behave/test/test_ansi_escapes.py +73 -0
- data/vendor/behave/test/test_configuration.py +172 -0
- data/vendor/behave/test/test_formatter.py +265 -0
- data/vendor/behave/test/test_formatter_progress.py +39 -0
- data/vendor/behave/test/test_formatter_rerun.py +97 -0
- data/vendor/behave/test/test_formatter_tags.py +57 -0
- data/vendor/behave/test/test_importer.py +151 -0
- data/vendor/behave/test/test_log_capture.py +29 -0
- data/vendor/behave/test/test_matchers.py +236 -0
- data/vendor/behave/test/test_model.py +871 -0
- data/vendor/behave/test/test_parser.py +1590 -0
- data/vendor/behave/test/test_runner.py +1074 -0
- data/vendor/behave/test/test_step_registry.py +96 -0
- data/vendor/behave/test/test_tag_expression.py +506 -0
- data/vendor/behave/test/test_tag_expression2.py +462 -0
- data/vendor/behave/test/test_tag_matcher.py +729 -0
- data/vendor/behave/test/test_userdata.py +184 -0
- data/vendor/behave/tests/README.txt +12 -0
- data/vendor/behave/tests/__init__.py +0 -0
- data/vendor/behave/tests/api/__ONLY_PY34_or_newer.txt +0 -0
- data/vendor/behave/tests/api/__init__.py +0 -0
- data/vendor/behave/tests/api/_test_async_step34.py +130 -0
- data/vendor/behave/tests/api/_test_async_step35.py +75 -0
- data/vendor/behave/tests/api/test_async_step.py +18 -0
- data/vendor/behave/tests/api/testing_support.py +94 -0
- data/vendor/behave/tests/api/testing_support_async.py +21 -0
- data/vendor/behave/tests/issues/test_issue0336.py +66 -0
- data/vendor/behave/tests/issues/test_issue0449.py +55 -0
- data/vendor/behave/tests/issues/test_issue0453.py +62 -0
- data/vendor/behave/tests/issues/test_issue0458.py +54 -0
- data/vendor/behave/tests/issues/test_issue0495.py +65 -0
- data/vendor/behave/tests/unit/__init__.py +0 -0
- data/vendor/behave/tests/unit/test_behave4cmd_command_shell_proc.py +135 -0
- data/vendor/behave/tests/unit/test_capture.py +280 -0
- data/vendor/behave/tests/unit/test_model_core.py +56 -0
- data/vendor/behave/tests/unit/test_textutil.py +267 -0
- data/vendor/behave/tools/test-features/background.feature +9 -0
- data/vendor/behave/tools/test-features/environment.py +8 -0
- data/vendor/behave/tools/test-features/french.feature +11 -0
- data/vendor/behave/tools/test-features/outline.feature +39 -0
- data/vendor/behave/tools/test-features/parse.feature +10 -0
- data/vendor/behave/tools/test-features/step-data.feature +60 -0
- data/vendor/behave/tools/test-features/steps/steps.py +120 -0
- data/vendor/behave/tools/test-features/tags.feature +18 -0
- data/vendor/behave/tox.ini +159 -0
- metadata +562 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
==============
|
|
2
|
+
Using *behave*
|
|
3
|
+
==============
|
|
4
|
+
|
|
5
|
+
The command-line tool *behave* has a bunch of `command-line arguments`_ and is
|
|
6
|
+
also configurable using `configuration files`_.
|
|
7
|
+
|
|
8
|
+
Values defined in the configuration files are used as defaults which the
|
|
9
|
+
command-line arguments may override.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
Command-Line Arguments
|
|
13
|
+
======================
|
|
14
|
+
|
|
15
|
+
You may see the same information presented below at any time using ``behave
|
|
16
|
+
-h``.
|
|
17
|
+
|
|
18
|
+
{cmdline}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
Tag Expression
|
|
22
|
+
--------------
|
|
23
|
+
|
|
24
|
+
{tag_expression}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
Configuration Files
|
|
28
|
+
===================
|
|
29
|
+
|
|
30
|
+
Configuration files for *behave* are called either ".behaverc",
|
|
31
|
+
"behave.ini" or "setup.cfg" (your preference) and are located in one of
|
|
32
|
+
three places:
|
|
33
|
+
|
|
34
|
+
1. the current working directory (good for per-project settings),
|
|
35
|
+
2. your home directory ($HOME), or
|
|
36
|
+
3. on Windows, in the %APPDATA% directory.
|
|
37
|
+
|
|
38
|
+
If you are wondering where *behave* is getting its configuration defaults
|
|
39
|
+
from you can use the "-v" command-line argument and it'll tell you.
|
|
40
|
+
|
|
41
|
+
Configuration files **must** start with the label "[behave]" and are
|
|
42
|
+
formatted in the Windows INI style, for example:
|
|
43
|
+
|
|
44
|
+
.. code-block:: ini
|
|
45
|
+
|
|
46
|
+
[behave]
|
|
47
|
+
format=plain
|
|
48
|
+
logging_clear_handlers=yes
|
|
49
|
+
logging_filter=-suds
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
Configuration Parameter Types
|
|
53
|
+
-----------------------------
|
|
54
|
+
|
|
55
|
+
The following types are supported (and used):
|
|
56
|
+
|
|
57
|
+
**text**
|
|
58
|
+
This just assigns whatever text you supply to the configuration setting.
|
|
59
|
+
|
|
60
|
+
**bool**
|
|
61
|
+
This assigns a boolean value to the configuration setting.
|
|
62
|
+
The text describes the functionality when the value is true.
|
|
63
|
+
True values are "1", "yes", "true", and "on".
|
|
64
|
+
False values are "0", "no", "false", and "off".
|
|
65
|
+
|
|
66
|
+
**sequence<text>**
|
|
67
|
+
These fields accept one or more values on new lines, for example a tag
|
|
68
|
+
expression might look like:
|
|
69
|
+
|
|
70
|
+
.. code-block:: ini
|
|
71
|
+
|
|
72
|
+
tags=@foo,~@bar
|
|
73
|
+
@zap
|
|
74
|
+
|
|
75
|
+
which is the equivalent of the command-line usage::
|
|
76
|
+
|
|
77
|
+
--tags @foo,~@bar --tags @zap
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
Configuration Parameters
|
|
82
|
+
-----------------------------
|
|
83
|
+
|
|
84
|
+
{config}
|
|
85
|
+
|
|
86
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
.. _id.appendix.behave_ecosystem:
|
|
2
|
+
|
|
3
|
+
Behave Ecosystem
|
|
4
|
+
==============================================================================
|
|
5
|
+
|
|
6
|
+
The following tools and extensions try to simplify the work with `behave`_.
|
|
7
|
+
|
|
8
|
+
.. _behave: https://github.com/behave/behave
|
|
9
|
+
|
|
10
|
+
.. seealso::
|
|
11
|
+
|
|
12
|
+
* `Are there any non-developer tools for writing Gherkin files ?
|
|
13
|
+
<http://stackoverflow.com/questions/8275026/are-there-any-non-developer-tools-to-edit-gherkin-files>`_
|
|
14
|
+
(``*.feature`` files)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
IDE Plugins
|
|
18
|
+
------------------------------------------------------------------------------
|
|
19
|
+
|
|
20
|
+
=============== =================== ======================================================================================
|
|
21
|
+
IDE Plugin Description
|
|
22
|
+
=============== =================== ======================================================================================
|
|
23
|
+
`PyCharm`_ `PyCharm BDD`_ PyCharm 4 (Professional edition) has **built-in support** for `behave`_.
|
|
24
|
+
`PyCharm`_ Gherkin PyCharm/IDEA editor support for Gherkin.
|
|
25
|
+
`Eclipse`_ `Cucumber-Eclipse`_ Plugin contains editor support for Gherkin.
|
|
26
|
+
`VisualStudio`_ `cuke4vs`_ VisualStudio plugin with editor support for Gherkin.
|
|
27
|
+
=============== =================== ======================================================================================
|
|
28
|
+
|
|
29
|
+
.. _PyCharm: http://www.jetbrains.com/pycharm/
|
|
30
|
+
.. _Eclipse: http://eclipse.org/
|
|
31
|
+
.. _VisualStudio: http://www.visualstudio.com/
|
|
32
|
+
|
|
33
|
+
.. _`PyCharm BDD`: http://www.jetbrains.com/pycharm/whatsnew/#BDD
|
|
34
|
+
.. _`PyCharm BDD details`: http://blog.jetbrains.com/pycharm/2014/09/feature-spotlight-behavior-driven-development-in-pycharm/
|
|
35
|
+
.. _`Cucumber-Eclipse`: http://cucumber.github.io/cucumber-eclipse/
|
|
36
|
+
.. _cuke4vs: https://github.com/henritersteeg/cuke4vs
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
Editors and Editor Plugins
|
|
42
|
+
------------------------------------------------------------------------------
|
|
43
|
+
|
|
44
|
+
=================== ======================= =============================================================================
|
|
45
|
+
Editor Plugin Description
|
|
46
|
+
=================== ======================= =============================================================================
|
|
47
|
+
`gedit`_ `gedit_behave`_ `gedit`_ plugin for jumping between feature and step files.
|
|
48
|
+
`Gherkin editor`_ --- An editor for writing ``*.feature`` files.
|
|
49
|
+
`Notepad++`_ `NP++ gherkin`_ Notepad++ editor syntax highlighting for Gherkin.
|
|
50
|
+
`Sublime Text`_ `Cucumber (ST Bundle)`_ Gherkin editor support, table formatting.
|
|
51
|
+
`Sublime Text`_ `Behave Step Finder`_ Helps to navigate to steps in behave.
|
|
52
|
+
`vim`_ `vim-behave`_ `vim`_ plugin: Port of `vim-cucumber`_ to Python `behave`_.
|
|
53
|
+
=================== ======================= =============================================================================
|
|
54
|
+
|
|
55
|
+
.. _`Notepad++`: http://www.notepad-plus-plus.org
|
|
56
|
+
.. _gedit: https://wiki.gnome.org/Apps/Gedit
|
|
57
|
+
.. _vim: http://www.vim.org/
|
|
58
|
+
.. _`Sublime Text`: http://www.sublimetext.com
|
|
59
|
+
|
|
60
|
+
.. _`Gherkin editor`: http://gherkineditor.codeplex.com
|
|
61
|
+
.. _gedit_behave: https://gitorious.org/cucutags/gedit_behave
|
|
62
|
+
.. _`NP++ gherkin`: http://productive.me/develop/cucumbergherkin-syntax-highlighting-for-notepad
|
|
63
|
+
.. _vim-behave: https://gitorious.org/cucutags/vim-behave
|
|
64
|
+
.. _vim-cucumber: https://github.com/tpope/vim-cucumber
|
|
65
|
+
.. _`Cucumber (ST Bundle)`: https://packagecontrol.io/packages/Cucumber
|
|
66
|
+
.. _Behave Step Finder: https://packagecontrol.io/packages/Behave%20Step%20Finder
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
Tools
|
|
70
|
+
------------------------------------------------------------------------------
|
|
71
|
+
|
|
72
|
+
=========================== ===========================================================================
|
|
73
|
+
Tool Description
|
|
74
|
+
=========================== ===========================================================================
|
|
75
|
+
`cucutags`_ Generate `ctags`_-like information (cross-reference index)
|
|
76
|
+
for Gherkin feature files and behave step definitions.
|
|
77
|
+
=========================== ===========================================================================
|
|
78
|
+
|
|
79
|
+
.. _cucutags: https://gitorious.org/cucutags/cucutags/
|
|
80
|
+
.. _ctags: http://ctags.sourceforge.net/
|
|
81
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
===========================
|
|
2
|
+
Comparison With Other Tools
|
|
3
|
+
===========================
|
|
4
|
+
|
|
5
|
+
There are other options for doing Gherkin-based BDD in Python. We've listed
|
|
6
|
+
the main ones below and why we feel you're better off using behave. Obviously
|
|
7
|
+
this comes from our point of view and you may disagree. That's cool. We're
|
|
8
|
+
not worried whichever way you go.
|
|
9
|
+
|
|
10
|
+
This page may be out of date as the projects mentioned will almost certainly
|
|
11
|
+
change over time. If anything on this page is out of date, please contact us.
|
|
12
|
+
|
|
13
|
+
Cucumber_
|
|
14
|
+
=========
|
|
15
|
+
|
|
16
|
+
You can actually use Cucumber to run test code written in Python. It uses
|
|
17
|
+
"rubypython" (dead) to fire up a Python interpreter inside the Ruby process though and
|
|
18
|
+
this can be somewhat brittle. Obviously we prefer to use something written in
|
|
19
|
+
Python but if you've got an existing workflow based around Cucumber and you
|
|
20
|
+
have code in multiple languages, Cucumber may be the one for you.
|
|
21
|
+
|
|
22
|
+
.. _Cucumber: http://cukes.info/
|
|
23
|
+
.. dead-project:
|
|
24
|
+
|
|
25
|
+
rubypython: http://rubypython.rubyforge.org/
|
|
26
|
+
|
|
27
|
+
Lettuce_
|
|
28
|
+
========
|
|
29
|
+
|
|
30
|
+
:pypi:`lettuce` is similar to behave in that it's a fairly straight port of
|
|
31
|
+
the basic functionality of `Cucumber`_. The main differences with behave are:
|
|
32
|
+
|
|
33
|
+
* Single decorator for step definitions, ``@step``.
|
|
34
|
+
* The context variable, ``world``, is simply a shared holder of attributes.
|
|
35
|
+
It never gets cleaned up during the run.
|
|
36
|
+
* Hooks are declared using decorators rather than as simple functions.
|
|
37
|
+
* No support for tags.
|
|
38
|
+
* Step definition code files can be anywhere in the feature directory
|
|
39
|
+
hierarchy.
|
|
40
|
+
|
|
41
|
+
The issues we had with Lettuce that stopped us using it were:
|
|
42
|
+
|
|
43
|
+
* Lack of tags (which are supported by now, at least since v0.2.20).
|
|
44
|
+
* The hooks functionality was patchy. For instance it was very hard to clean
|
|
45
|
+
up the ``world`` variable between scenario outlines. Behave clears the
|
|
46
|
+
scenario-level context between outlines automatically.
|
|
47
|
+
* Lettuce's handling of stdout would occasionally cause it to crash mid-run in
|
|
48
|
+
such a way that cleanup hooks were never run.
|
|
49
|
+
* Lettuce uses import hackery so .pyc files are left around and the module
|
|
50
|
+
namespace is polluted.
|
|
51
|
+
|
|
52
|
+
.. _Lettuce: http://lettuce.it/
|
|
53
|
+
|
|
54
|
+
Freshen_
|
|
55
|
+
========
|
|
56
|
+
|
|
57
|
+
:pypi:`freshen` is a plugin for :pypi:`nose` that implements a
|
|
58
|
+
Gherkin-style language with Python step definitions.
|
|
59
|
+
The main differences with behave are:
|
|
60
|
+
|
|
61
|
+
* Operates as a plugin for nose, and is thus tied to the nose runner and its
|
|
62
|
+
output model.
|
|
63
|
+
* Has some additions to its Gherkin syntax allowing it to specify specific step
|
|
64
|
+
definition modules for each feature.
|
|
65
|
+
* Has separate context objects for various levels: ``glc``, ``ftc`` and
|
|
66
|
+
``scc``. These relate to global, feature and scenario levels respectively.
|
|
67
|
+
|
|
68
|
+
The issues we had with Freshen that stopped us using it were:
|
|
69
|
+
|
|
70
|
+
* The integration with the nose runner made it quite hard to properly debug
|
|
71
|
+
how and why tests were failing. Quite often you'd get a rather cryptic
|
|
72
|
+
message with the actual exception having been swallowed.
|
|
73
|
+
* The feature-specific step includes could lead to specific sets of step
|
|
74
|
+
definitions for each feature despite them warning against doing that.
|
|
75
|
+
* The output being handled by nose meant that you couldn't do cucumber-style
|
|
76
|
+
output without the addition of more plugins.
|
|
77
|
+
* The context variable names are cryptic and moving context data from one
|
|
78
|
+
level to another takes a certain amount of work finding and renaming. The
|
|
79
|
+
behave `context` variable is much more flexible.
|
|
80
|
+
* Step functions must have unique names, even though they're decorated to
|
|
81
|
+
match different strings.
|
|
82
|
+
* As with Lettuce, Freshen uses import hackery so .pyc files are left
|
|
83
|
+
around and the module namespace is polluted.
|
|
84
|
+
* Only Before and no contextual before/after control, thus requiring use of
|
|
85
|
+
atexit for teardown operations and no fine-grained control.
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# =============================================================================
|
|
3
|
+
# SPHINX CONFIGURATION: behave documentation build configuration file
|
|
4
|
+
# =============================================================================
|
|
5
|
+
|
|
6
|
+
import os.path
|
|
7
|
+
import sys
|
|
8
|
+
|
|
9
|
+
# -- ENSURE: Local workspace is used (for sphinx apidocs).
|
|
10
|
+
# If extensions (or modules to document with autodoc) are in another directory,
|
|
11
|
+
# add these directories to sys.path here. If the directory is relative to the
|
|
12
|
+
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
13
|
+
sys.path.insert(0, os.path.abspath(".."))
|
|
14
|
+
|
|
15
|
+
# -- OPTIONAL EXTENSIONS/PARTS:
|
|
16
|
+
# NOTES:
|
|
17
|
+
# * sphinxcontrib.youtube: Not easily installable
|
|
18
|
+
# => other package with same name in pypi
|
|
19
|
+
try:
|
|
20
|
+
import sphinxcontrib.youtube
|
|
21
|
+
has_extension_sphinxcontrib_youtube = True
|
|
22
|
+
except ImportError:
|
|
23
|
+
has_extension_sphinxcontrib_youtube = False
|
|
24
|
+
|
|
25
|
+
# ------------------------------------------------------------------------------
|
|
26
|
+
# GENERAL CONFIGGURATION
|
|
27
|
+
# ------------------------------------------------------------------------------
|
|
28
|
+
# If your documentation needs a minimal Sphinx version, state it here.
|
|
29
|
+
needs_sphinx = "1.3"
|
|
30
|
+
|
|
31
|
+
# Add any Sphinx extension module names here, as strings. They can be extensions
|
|
32
|
+
# coming with Sphinx (named "sphinx.ext.*") or your custom ones.
|
|
33
|
+
extensions = [
|
|
34
|
+
"sphinx.ext.autodoc",
|
|
35
|
+
"sphinx.ext.ifconfig",
|
|
36
|
+
"sphinx.ext.extlinks",
|
|
37
|
+
]
|
|
38
|
+
if has_extension_sphinxcontrib_youtube:
|
|
39
|
+
extensions.append("sphinxcontrib.youtube")
|
|
40
|
+
|
|
41
|
+
# Add any paths that contain templates here, relative to this directory.
|
|
42
|
+
templates_path = ["_templates"]
|
|
43
|
+
|
|
44
|
+
# The suffix of source filenames.
|
|
45
|
+
source_suffix = ".rst"
|
|
46
|
+
|
|
47
|
+
# The encoding of source files.
|
|
48
|
+
source_encoding = "utf-8"
|
|
49
|
+
|
|
50
|
+
# The master toctree document.
|
|
51
|
+
master_doc = "index"
|
|
52
|
+
|
|
53
|
+
# General information about the project.
|
|
54
|
+
project = u"behave"
|
|
55
|
+
authors = u"Benno Rice, Richard Jones and Jens Engel"
|
|
56
|
+
copyright = u"2012-2016, %s" % authors
|
|
57
|
+
|
|
58
|
+
# The version info for the project you're documenting, acts as replacement for
|
|
59
|
+
# |version| and |release|, also used in various other places throughout the
|
|
60
|
+
# built documents.
|
|
61
|
+
#
|
|
62
|
+
# The short X.Y version.
|
|
63
|
+
from behave import __version__
|
|
64
|
+
version = __version__
|
|
65
|
+
# The full version, including alpha/beta/rc tags.
|
|
66
|
+
release = __version__
|
|
67
|
+
|
|
68
|
+
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
69
|
+
# for a list of supported languages.
|
|
70
|
+
#language = None
|
|
71
|
+
|
|
72
|
+
# There are two options for replacing |today|: either, you set today to some
|
|
73
|
+
# non-false value, then it is used:
|
|
74
|
+
#today = ""
|
|
75
|
+
# Else, today_fmt is used as the format for a strftime call.
|
|
76
|
+
#today_fmt = "%B %d, %Y"
|
|
77
|
+
|
|
78
|
+
# List of patterns, relative to source directory, that match files and
|
|
79
|
+
# directories to ignore when looking for source files.
|
|
80
|
+
exclude_patterns = ["_build"]
|
|
81
|
+
|
|
82
|
+
# The reST default role (used for this markup: `text`) to use for all documents.
|
|
83
|
+
#default_role = None
|
|
84
|
+
|
|
85
|
+
# If true, "()" will be appended to :func: etc. cross-reference text.
|
|
86
|
+
#add_function_parentheses = True
|
|
87
|
+
|
|
88
|
+
# If true, the current module name will be prepended to all description
|
|
89
|
+
# unit titles (such as .. function::).
|
|
90
|
+
#add_module_names = True
|
|
91
|
+
|
|
92
|
+
# If true, sectionauthor and moduleauthor directives will be shown in the
|
|
93
|
+
# output. They are ignored by default.
|
|
94
|
+
#show_authors = False
|
|
95
|
+
|
|
96
|
+
# The name of the Pygments (syntax highlighting) style to use.
|
|
97
|
+
pygments_style = "sphinx"
|
|
98
|
+
|
|
99
|
+
# A list of ignored prefixes for module index sorting.
|
|
100
|
+
#modindex_common_prefix = []
|
|
101
|
+
|
|
102
|
+
extlinks = {
|
|
103
|
+
"pypi": ("https://pypi.python.org/pypi/%s", ""),
|
|
104
|
+
"github": ("https://github.com/%s", "github:/"),
|
|
105
|
+
"issue": ("https://github.com/behave/behave/issue/%s", "issue #"),
|
|
106
|
+
"youtube": ("https://www.youtube.com/watch?v=%s", "youtube:video="),
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
# -- SUPPORT: Documentation variation-points with sphinx.ext.ifconfig
|
|
111
|
+
def setup(app):
|
|
112
|
+
# -- VARIATION-POINT: supports_video
|
|
113
|
+
# BASED-ON: installed("sphinxcontrib-youtube") and output-mode
|
|
114
|
+
# TODO: Check for output-mode, too (supported on: HTML, ...)
|
|
115
|
+
supports_video = has_extension_sphinxcontrib_youtube
|
|
116
|
+
app.add_config_value("supports_video", supports_video, "env")
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
# ------------------------------------------------------------------------------
|
|
120
|
+
# OPTIONS FOR: HTML OUTPUT
|
|
121
|
+
# ------------------------------------------------------------------------------
|
|
122
|
+
# The theme to use for HTML and HTML Help pages. See the documentation for
|
|
123
|
+
# a list of builtin themes.
|
|
124
|
+
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
|
|
125
|
+
if on_rtd:
|
|
126
|
+
html_theme = "default"
|
|
127
|
+
else:
|
|
128
|
+
html_theme = "kr"
|
|
129
|
+
|
|
130
|
+
# Theme options are theme-specific and customize the look and feel of a theme
|
|
131
|
+
# further. For a list of options available for each theme, see the
|
|
132
|
+
# documentation.
|
|
133
|
+
|
|
134
|
+
# agogo options:
|
|
135
|
+
# headerfont (CSS font family): Font for headings.
|
|
136
|
+
# pagewidth (CSS length): Width of the page content, default 70em.
|
|
137
|
+
# documentwidth (CSS length): Width of the document (without sidebar), default 50em.
|
|
138
|
+
# sidebarwidth (CSS length): Width of the sidebar, default 20em.
|
|
139
|
+
# bgcolor (CSS color): Background color.
|
|
140
|
+
# headerbg (CSS value for “background”): background for the header area, default a grayish gradient.
|
|
141
|
+
# footerbg (CSS value for “background”): background for the footer area, default a light gray gradient.
|
|
142
|
+
# linkcolor (CSS color): Body link color.
|
|
143
|
+
# headercolor1, headercolor2 (CSS color): colors for <h1> and <h2> headings.
|
|
144
|
+
# headerlinkcolor (CSS color): Color for the backreference link in headings.
|
|
145
|
+
# textalign (CSS text-align value): Text alignment for the body, default is justify.
|
|
146
|
+
|
|
147
|
+
html_theme_options = {
|
|
148
|
+
#"bodyfont": '"Ubuntu", sans-serif', # (CSS font family): Font for normal text.
|
|
149
|
+
#"github_fork": "behave/behave"
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
# Add any paths that contain custom themes here, relative to this directory.
|
|
153
|
+
html_theme_path = ["_themes"]
|
|
154
|
+
|
|
155
|
+
# The name for this set of Sphinx documents. If None, it defaults to
|
|
156
|
+
# "<project> v<release> documentation".
|
|
157
|
+
#html_title = None
|
|
158
|
+
|
|
159
|
+
# A shorter title for the navigation bar. Default is the same as html_title.
|
|
160
|
+
#html_short_title = None
|
|
161
|
+
|
|
162
|
+
# The name of an image file (relative to this directory) to place at the top
|
|
163
|
+
# of the sidebar.
|
|
164
|
+
html_logo = "_static/behave_logo1.png"
|
|
165
|
+
|
|
166
|
+
# The name of an image file (within the static path) to use as favicon of the
|
|
167
|
+
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
|
168
|
+
# pixels large.
|
|
169
|
+
#html_favicon = None
|
|
170
|
+
|
|
171
|
+
# Add any paths that contain custom static files (such as style sheets) here,
|
|
172
|
+
# relative to this directory. They are copied after the builtin static files,
|
|
173
|
+
# so a file named "default.css" will overwrite the builtin "default.css".
|
|
174
|
+
html_static_path = ["_static"]
|
|
175
|
+
|
|
176
|
+
# If not "", a "Last updated on:" timestamp is inserted at every page bottom,
|
|
177
|
+
# using the given strftime format.
|
|
178
|
+
#html_last_updated_fmt = "%b %d, %Y"
|
|
179
|
+
|
|
180
|
+
# If true, SmartyPants will be used to convert quotes and dashes to
|
|
181
|
+
# typographically correct entities.
|
|
182
|
+
#html_use_smartypants = True
|
|
183
|
+
|
|
184
|
+
# Custom sidebar templates, maps document names to template names.
|
|
185
|
+
#html_sidebars = {}
|
|
186
|
+
|
|
187
|
+
# Additional templates that should be rendered to pages, maps page names to
|
|
188
|
+
# template names.
|
|
189
|
+
#html_additional_pages = {}
|
|
190
|
+
|
|
191
|
+
# If false, no module index is generated.
|
|
192
|
+
#html_domain_indices = True
|
|
193
|
+
|
|
194
|
+
# If false, no index is generated.
|
|
195
|
+
#html_use_index = True
|
|
196
|
+
|
|
197
|
+
# If true, the index is split into individual pages for each letter.
|
|
198
|
+
#html_split_index = False
|
|
199
|
+
|
|
200
|
+
# If true, links to the reST sources are added to the pages.
|
|
201
|
+
#html_show_sourcelink = True
|
|
202
|
+
|
|
203
|
+
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
|
204
|
+
#html_show_sphinx = True
|
|
205
|
+
|
|
206
|
+
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
|
207
|
+
#html_show_copyright = True
|
|
208
|
+
|
|
209
|
+
# If true, an OpenSearch description file will be output, and all pages will
|
|
210
|
+
# contain a <link> tag referring to it. The value of this option must be the
|
|
211
|
+
# base URL from which the finished HTML is served.
|
|
212
|
+
#html_use_opensearch = ""
|
|
213
|
+
|
|
214
|
+
# This is the file name suffix for HTML files (e.g. ".xhtml").
|
|
215
|
+
#html_file_suffix = None
|
|
216
|
+
|
|
217
|
+
# Output file base name for HTML help builder.
|
|
218
|
+
htmlhelp_basename = "behavedoc"
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
# ------------------------------------------------------------------------------
|
|
222
|
+
# OPTIONS FOR: LATEX OUTPUT
|
|
223
|
+
# ------------------------------------------------------------------------------
|
|
224
|
+
latex_elements = {
|
|
225
|
+
# The paper size ("letterpaper" or "a4paper").
|
|
226
|
+
#"papersize": "letterpaper",
|
|
227
|
+
|
|
228
|
+
# The font size ("10pt", "11pt" or "12pt").
|
|
229
|
+
#"pointsize": "10pt",
|
|
230
|
+
|
|
231
|
+
# Additional stuff for the LaTeX preamble.
|
|
232
|
+
#"preamble": "",
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
# Grouping the document tree into LaTeX files. List of tuples
|
|
236
|
+
# (source start file, target name, title, author, documentclass [howto/manual]).
|
|
237
|
+
latex_documents = [
|
|
238
|
+
("index", "behave.tex", u"behave Documentation", authors, "manual"),
|
|
239
|
+
]
|
|
240
|
+
|
|
241
|
+
# The name of an image file (relative to this directory) to place at the top of
|
|
242
|
+
# the title page.
|
|
243
|
+
#latex_logo = None
|
|
244
|
+
|
|
245
|
+
# For "manual" documents, if this is true, then toplevel headings are parts,
|
|
246
|
+
# not chapters.
|
|
247
|
+
#latex_use_parts = False
|
|
248
|
+
|
|
249
|
+
# If true, show page references after internal links.
|
|
250
|
+
#latex_show_pagerefs = False
|
|
251
|
+
|
|
252
|
+
# If true, show URL addresses after external links.
|
|
253
|
+
#latex_show_urls = False
|
|
254
|
+
|
|
255
|
+
# Documents to append as an appendix to all manuals.
|
|
256
|
+
#latex_appendices = []
|
|
257
|
+
|
|
258
|
+
# If false, no module index is generated.
|
|
259
|
+
#latex_domain_indices = True
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
# ------------------------------------------------------------------------------
|
|
263
|
+
# OPTIONS FOR: MANUAL PAGE (man page) OUTPUT
|
|
264
|
+
# ------------------------------------------------------------------------------
|
|
265
|
+
# One entry per manual page. List of tuples
|
|
266
|
+
# (source start file, name, description, authors, manual section).
|
|
267
|
+
man_pages = [
|
|
268
|
+
("index", "behave", u"behave Documentation", [authors], 1)
|
|
269
|
+
]
|
|
270
|
+
|
|
271
|
+
# If true, show URL addresses after external links.
|
|
272
|
+
#man_show_urls = False
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
# ------------------------------------------------------------------------------
|
|
276
|
+
# OPTIONS FOR: Texinfo output
|
|
277
|
+
# ------------------------------------------------------------------------------
|
|
278
|
+
# Grouping the document tree into Texinfo files. List of tuples
|
|
279
|
+
# (source start file, target name, title, author,
|
|
280
|
+
# dir menu entry, description, category)
|
|
281
|
+
texinfo_documents = [
|
|
282
|
+
("index", "behave", u"behave Documentation", authors,
|
|
283
|
+
"behave", "A test runner for behave (feature tests).", "Miscellaneous"),
|
|
284
|
+
]
|
|
285
|
+
|
|
286
|
+
# Documents to append as an appendix to all manuals.
|
|
287
|
+
#texinfo_appendices = []
|
|
288
|
+
|
|
289
|
+
# If false, no module index is generated.
|
|
290
|
+
#texinfo_domain_indices = True
|
|
291
|
+
|
|
292
|
+
# How to display URL addresses: "footnote", "no", or "inline".
|
|
293
|
+
#texinfo_show_urls = "footnote"
|