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

correct variable name in testing docs #913

Merged
merged 2 commits into from
Jun 4, 2016
Merged

correct variable name in testing docs #913

merged 2 commits into from
Jun 4, 2016

Conversation

samuelcolvin
Copy link
Member

What do these changes do?

Correct variable name in pytest section of testing docs

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes

@coveralls
Copy link

coveralls commented Jun 4, 2016

Coverage Status

Coverage remained the same at 98.106% when pulling 39e1887 on samuelcolvin:testing-docs-correction into fc2b408 on KeepSafe:master.

@coveralls
Copy link

coveralls commented Jun 4, 2016

Coverage Status

Coverage remained the same at 98.106% when pulling df5b4ea on samuelcolvin:testing-docs-correction into fc2b408 on KeepSafe:master.


TestClient can also be used as a contextmanager, returning
the instance of itself instantiated.
"""

def __init__(self, app, protocol="http"):
self._app = app
self.app = app
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you covert app to public name?

Copy link
Member Author

@samuelcolvin samuelcolvin Jun 4, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, was about to make a comment about this.

Very often in tests it's helpful to get access to the app eg. to get the db connection and check data has changed as expected.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since aiohttp encourages app holding all variables this is basically the test client's only way of getting access to serverside data.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@asvetlov asvetlov merged commit 3347cdc into aio-libs:master Jun 4, 2016
@asvetlov
Copy link
Member

asvetlov commented Jun 4, 2016

thanks

@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