Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inconsistent error handling for unknown test keys #93

Closed
FND opened this issue Sep 30, 2015 · 0 comments
Closed

inconsistent error handling for unknown test keys #93

FND opened this issue Sep 30, 2015 · 0 comments
Assignees

Comments

@FND
Copy link
Collaborator

FND commented Sep 30, 2015

tests:
- name: ...
  GET: /
  response_html: ...

This results in "GabbiFormatError: Invalid test keys used in test", pretty much as expected.

However, when that key's value is a dictionary, a KeyError is raised instead:

tests:
- name: ...
  GET: /
  response_html:
      foo: hello
      bar: world

This seems inconsistent and undesirable.

@cdent cdent self-assigned this Sep 30, 2015
@cdent cdent closed this as completed in 923fc5a Sep 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants