nestorsalceda / mamba

The definitive testing tool for Python. Born under the banner of Behavior Driven Development (BDD).
http://nestorsalceda.github.io/mamba
MIT License
518 stars 65 forks source link

Underscores are replaced with spaces in it blocks #119

Open nielsbuus opened 5 years ago

nielsbuus commented 5 years ago

In this example

with description("foo"):
    with context("bar"):
       it("loads baz_driver correctly")

Mamba will replace the underscore in baz_driver with spaces and the output when running in documentation mode becomes:

foo
  bar
    ✓ it loads baz driver correctly

Expected output:

foo
  bar
    ✓ it loads baz_driver correctly

Using Mamba 0.9.3.

Is this transformation deliberate? And if so, why?

Note: context and description blocks do not apply any substitution.