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

Fix test_client fixture to allow multiple clients per test #1072

Merged
merged 1 commit into from
Aug 13, 2016

Conversation

popravich
Copy link
Member

What do these changes do?

test_client fixture now allows multiple client instances:

from project import frontend, api

async def test_full_app(test_client):
    front_client = await test_client(frontend.make_app)
    api_client = await test_client(api.make_app)
    # test complete application

@codecov-io
Copy link

codecov-io commented Aug 12, 2016

Current coverage is 97.48% (diff: 100%)

Merging #1072 into master will increase coverage by <.01%

@@             master      #1072   diff @@
==========================================
  Files            28         28          
  Lines          6532       6533     +1   
  Methods           0          0          
  Messages          0          0          
  Branches       1101       1101          
==========================================
+ Hits           6368       6369     +1   
  Misses           88         88          
  Partials         76         76          

Powered by Codecov. Last update b0231dc...8e5d508

@asvetlov
Copy link
Member

Not bad but what's you use case?
I'm just curious.

@popravich
Copy link
Member Author

Use case is almost as in example above:
project has two servers - public and internal APIs.
I'm testing that touching private API properly propagates data to public API.

@asvetlov
Copy link
Member

lgtm

@popravich popravich merged commit 8131cae into master Aug 13, 2016
@popravich popravich deleted the pytest_plugin branch August 13, 2016 12:30
@lock
Copy link

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants