jolly-good-toolbelt / sphinx_gherkindoc

A tool to convert Gherkin into Sphinx documentation
https://jolly-good-toolbelt.github.io/sphinx_gherkindoc/
11 stars 10 forks source link

FF: Fix run-tests from PR #10. #12

Closed dgou closed 5 years ago

dgou commented 5 years ago

This fixes the tests from the merge of PR #10

% git log -n 1
commit c9e35b0f0e7a828bb05e0f12083d5c1ad862ca61 (HEAD -> FF-fix-tests, origin/FF-fix-tests)
Author: Doug Philips <dgou@mac.com>
Date:   Fri Jul 19 23:02:16 2019 -0400

    FF: Fix run-tests from PR #10.

 ./run_tests.py 
+poetry run pytest -vv --cov sphinx_gherkindoc --cov-report term-missing
============================================================================== test session starts ===============================================================================
platform linux -- Python 3.7.3, pytest-4.6.4, py-1.8.0, pluggy-0.12.0 -- /home/dwp/.virtual_envs/19b7098afed57a6/bin/python
cachedir: .pytest_cache
rootdir: /home/dwp/code/sphinx_gherkindoc
plugins: cov-2.7.1
collected 87 items                                                                                                                                                               

tests/test_files.py::test_is_feature_file PASSED                                                                                                                           [  1%]
tests/test_files.py::test_is_feature_file_caps PASSED                                                                                                                      [  2%]
tests/test_files.py::test_is_feature_file_not PASSED                                                                                                                       [  3%]
tests/test_files.py::test_is_feature_file_blank PASSED                                                                                                                     [  4%]
tests/test_files.py::test_is_rst_file PASSED                                                                                                                               [  5%]
tests/test_files.py::test_is_rst_file_caps PASSED                                                                                                                          [  6%]
tests/test_files.py::test_is_rst_file_not PASSED                                                                                                                           [  8%]
tests/test_files.py::test_is_rst_file_blank PASSED                                                                                                                         [  9%]
tests/test_files.py::test_not_private PASSED                                                                                                                               [ 10%]
tests/test_files.py::test_not_private_is_private PASSED                                                                                                                    [ 11%]
tests/test_files.py::test_not_private_blank PASSED                                                                                                                         [ 12%]
tests/test_files.py::test_is_wanted_file[.feature] PASSED                                                                                                                  [ 13%]
tests/test_files.py::test_is_wanted_file[.rst] PASSED                                                                                                                      [ 14%]
tests/test_files.py::test_is_wanted_file[.md] PASSED                                                                                                                       [ 16%]
tests/test_files.py::test_is_wanted_file_caps[.feature] PASSED                                                                                                             [ 17%]
tests/test_files.py::test_is_wanted_file_caps[.rst] PASSED                                                                                                                 [ 18%]
tests/test_files.py::test_is_wanted_file_caps[.md] PASSED                                                                                                                  [ 19%]
tests/test_files.py::test_is_wanted_file_not PASSED                                                                                                                        [ 20%]
tests/test_files.py::test_is_excluded PASSED                                                                                                                               [ 21%]
tests/test_files.py::test_is_excluded_not PASSED                                                                                                                           [ 22%]
tests/test_files.py::test_is_excluded_empty_filename PASSED                                                                                                                [ 24%]
tests/test_files.py::test_is_excluded_empty_exclude PASSED                                                                                                                 [ 25%]
tests/test_files.py::test_is_excluded_folder PASSED                                                                                                                        [ 26%]
tests/test_files.py::test_not_hidden PASSED                                                                                                                                [ 27%]
tests/test_files.py::test_not_hidden_is PASSED                                                                                                                             [ 28%]
tests/test_files.py::test_wanted_source_files PASSED                                                                                                                       [ 29%]
tests/test_files.py::test_wanted_source_files_empty_exclude PASSED                                                                                                         [ 31%]
tests/test_files.py::test_wanted_source_files_empty_files PASSED                                                                                                           [ 32%]
tests/test_files.py::test_scan_tree PASSED                                                                                                                                 [ 33%]
tests/test_files.py::test_scan_tree_private PASSED                                                                                                                         [ 34%]
tests/test_files.py::test_scan_tree_exclude PASSED                                                                                                                         [ 35%]
tests/test_files.py::test_scan_tree_relative PASSED                                                                                                                        [ 36%]
tests/test_glossary.py::test_glossary_entry_init PASSED                                                                                                                    [ 37%]
tests/test_glossary.py::test_glossary_entry_add_reference PASSED                                                                                                           [ 39%]
tests/test_glossary.py::test_glossary_entry_tuple_len PASSED                                                                                                               [ 40%]
tests/test_glossary.py::test_glossary_gt PASSED                                                                                                                            [ 41%]
tests/test_glossary.py::test_glossary_eq PASSED                                                                                                                            [ 42%]
tests/test_glossary.py::test_make_steps_glossry_empty PASSED                                                                                                               [ 43%]
tests/test_glossary.py::test_make_steps_glossary PASSED                                                                                                                    [ 44%]
tests/test_utils.py::test_set_dry_run_true PASSED                                                                                                                          [ 45%]
tests/test_utils.py::test_set_dry_run_false PASSED                                                                                                                         [ 47%]
tests/test_utils.py::test_set_verbose_true PASSED                                                                                                                          [ 48%]
tests/test_utils.py::test_set_verbose_false PASSED                                                                                                                         [ 49%]
tests/test_utils.py::test_verbose_unmodified PASSED                                                                                                                        [ 50%]
tests/test_utils.py::test_verbose_verbose PASSED                                                                                                                           [ 51%]
tests/test_utils.py::test_verbose_dry_run PASSED                                                                                                                           [ 52%]
tests/test_utils.py::test_verbose_dry_run_verbose PASSED                                                                                                                   [ 54%]
tests/test_utils.py::test_rst_escape_unmodified PASSED                                                                                                                     [ 55%]
tests/test_utils.py::test_rst_escape_nonslash[*] PASSED                                                                                                                    [ 56%]
tests/test_utils.py::test_rst_escape_nonslash["] PASSED                                                                                                                    [ 57%]
tests/test_utils.py::test_rst_escape_nonslash[#] PASSED                                                                                                                    [ 58%]
tests/test_utils.py::test_rst_escape_nonslash[:] PASSED                                                                                                                    [ 59%]
tests/test_utils.py::test_rst_escape_nonslash[<] PASSED                                                                                                                    [ 60%]
tests/test_utils.py::test_rst_escape_nonslash[>] PASSED                                                                                                                    [ 62%]
tests/test_utils.py::test_rst_escape_unmodified_slash PASSED                                                                                                               [ 63%]
tests/test_utils.py::test_rst_escape_modified_slash PASSED                                                                                                                 [ 64%]
tests/test_utils.py::test_make_flat_name PASSED                                                                                                                            [ 65%]
tests/test_utils.py::test_make_flat_name_with_filename_root PASSED                                                                                                         [ 66%]
tests/test_utils.py::test_make_flat_name_is_dir PASSED                                                                                                                     [ 67%]
tests/test_utils.py::test_make_flat_name_extension PASSED                                                                                                                  [ 68%]
tests/test_utils.py::test_make_flat_name_empty_extension PASSED                                                                                                            [ 70%]
tests/test_utils.py::test_make_flat_name_none_extension PASSED                                                                                                             [ 71%]
tests/test_utils.py::test_make_flat_name_none_is_dir_extension PASSED                                                                                                      [ 72%]
tests/test_utils.py::test_sphinxwriter_init PASSED                                                                                                                         [ 73%]
tests/test_utils.py::test_sphinxwriter_blank_line PASSED                                                                                                                   [ 74%]
tests/test_utils.py::test_sphinxwriter_create_section PASSED                                                                                                               [ 75%]
tests/test_utils.py::test_sphinxwriter_create_section_large PASSED                                                                                                         [ 77%]
tests/test_utils.py::test_sphinxwriter_create_section_empty PASSED                                                                                                         [ 78%]
tests/test_utils.py::test_sphinxwriter_add_output PASSED                                                                                                                   [ 79%]
tests/test_utils.py::test_sphinxwriter_add_output_line_breaks PASSED                                                                                                       [ 80%]
tests/test_utils.py::test_sphinxwriter_add_output_line_breaks_negative PASSED                                                                                              [ 81%]
tests/test_utils.py::test_sphinxwriter_add_output_indent_by PASSED                                                                                                         [ 82%]
tests/test_utils.py::test_sphinxwriter_add_output_indent_by_negative PASSED                                                                                                [ 83%]
tests/test_utils.py::test_sphinxwriter_add_output_blank PASSED                                                                                                             [ 85%]
tests/test_utils.py::test_sphinxwriter_add_output_blank_line_breaks PASSED                                                                                                 [ 86%]
tests/test_utils.py::test_sphinxwriter_write_to_file PASSED                                                                                                                [ 87%]
tests/test_utils.py::test_sphinxwriter_write_to_file_bad_path PASSED                                                                                                       [ 88%]
tests/test_utils.py::test_sphinxwriter_write_to_file_verbose PASSED                                                                                                        [ 89%]
tests/test_utils.py::test_display_name_folder PASSED                                                                                                                       [ 90%]
tests/test_utils.py::test_display_name_package PASSED                                                                                                                      [ 91%]
tests/test_utils.py::test_display_name_file PASSED                                                                                                                         [ 93%]
tests/test_utils.py::test_display_name_file_and_package PASSED                                                                                                             [ 94%]
tests/test_writer.py::test_toctree PASSED                                                                                                                                  [ 95%]
tests/test_writer.py::test_toctree_with_rst PASSED                                                                                                                         [ 96%]
tests/test_writer.py::test_toctree_with_subdir PASSED                                                                                                                      [ 97%]
tests/test_writer.py::test_feature_to_rst PASSED                                                                                                                           [ 98%]
tests/test_writer.py::test_feature_to_rst_inherited_tags PASSED                                                                                                            [100%]

----------- coverage: platform linux, python 3.7.3-final-0 -----------
Name                            Stmts   Miss  Cover   Missing
-------------------------------------------------------------
sphinx_gherkindoc/__init__.py       0      0   100%
sphinx_gherkindoc/cli.py          111    111     0%   2-222
sphinx_gherkindoc/files.py         40      0   100%
sphinx_gherkindoc/glossary.py      36      0   100%
sphinx_gherkindoc/utils.py         52      0   100%
sphinx_gherkindoc/writer.py       127      8    94%   120, 130, 146-147, 149-151, 163
-------------------------------------------------------------
TOTAL                             366    119    67%

=========================================================================== 87 passed in 0.56 seconds ============================================================================