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

Smarter schema and mock assertions #4

Open
mouadino opened this issue Feb 18, 2016 · 0 comments
Open

Smarter schema and mock assertions #4

mouadino opened this issue Feb 18, 2016 · 0 comments

Comments

@mouadino
Copy link
Contributor

We need more testing helper so the consumer can make sure that the rpc call made is compliant (parameters are of the correct name and type) to the service input argument schema:

This mean that we need to expose the arguments type also, so the spec can look like this:

@lymph.rpc()
@spec(returns=int, id=uuid.UUID)
def get(self, id):
      pass

This way we can expose argument types and check them from out tests.

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

1 participant