alfredodeza / konira

beautiful (readable) testing in Python
60 stars 9 forks source link

it string is cannot contain non-alpha characters #24

Open ericchaves opened 10 years ago

ericchaves commented 10 years ago

Hi,

First of all, congrats for the awsome tool! I'm new to python but I'm used to write BDD styles in other languages and I found the describe/it/should grammar the perfect fit to use tests as documentation.

I noticed that I can't use non alpha characters in the it description because it will create an invalid class name. For example, such test would fail:

describe "my_class":
  it "should do something (like this)":
    pass

Since konira goal is to allow readable tests I would suggest allowing any character in the description string and sanitizing it before creating the actual class.

Anyhow its a great tool! Thanks for sharing it.