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

How to unit test promises #36

Open
Nakroma opened this issue Jun 13, 2017 · 0 comments
Open

How to unit test promises #36

Nakroma opened this issue Jun 13, 2017 · 0 comments

Comments

@Nakroma
Copy link

Nakroma commented Jun 13, 2017

Hey,
This is probably a noob question, but I can't get it to work with the usual asyncio testing.
How would I effectively test something like this? Im currently using unittest with nose

my_promise_module.get("something").then(lambda res: self.assertTrue(isinstance(res, int)))
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