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

AsyncMock? #25

Open
github-actions bot opened this issue Sep 25, 2021 · 0 comments
Open

AsyncMock? #25

github-actions bot opened this issue Sep 25, 2021 · 0 comments
Labels

Comments

@github-actions
Copy link

AsyncMock?

Look for a better way to handle awaited objects, possibly AsyncMock

@pytest.mark.asyncio
async def test_create_cateogory():
    category = 'category'
    # TODO AsyncMock?
    # Look for a better way to handle awaited objects, possibly AsyncMock
    future = Future()
    future.set_result(category)

e7e7ee05f136d4b4eb3abac5f57d2333dcc1c92c

@github-actions github-actions bot added the todo label Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants