Skip to content

Test TestFromCommandLine::test_help_message may be sensitive to line wrapping #79

Description

@hdyson

🐜 Bug Report

The test lib/ugants/tests/abc/test_Application.py::TestFromCommandLine::test_help_message may be sensitive to command line wrapping.

Note that we do use theRawDescriptionHelpFormatter, which according to the documentation does not wrap lines:

Passing !RawDescriptionHelpFormatter as formatter_class= indicates that description and epilog are already correctly formatted and should not be line-wrapped

But the expected_help in our test does need to be line wrapped for the test to pass in the rose stem suite.

In particular, when running pytest in an emacs shell, we see a failure because this line is not wrapped in the actual test generated help string:

                        The name of the mesh contained in the file provided to
                        '--mesh'.

(To reproduce, in emacs, use:

M-x shell
cd <ugants-checkout>
<activate conda env>
export PYTHONPATH=$PWD/lib:$PYTHONPATH
python -m pytest lib/ugants/tests/abc/test_Application.py::TestFromCommandLine::test_help_message

)

While this is just an emacs issue, this should remain low priority. If we find other circumstances that trigger this issue, it may become a higher priority.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⬇ low priorityThis issue is lower priority than usual🐜 bugBug report for something that isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions