We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The query_one method should raise an exception if there isn't exactly one result from the query.
query_one
The text was updated successfully, but these errors were encountered:
Add a reminder to the mount tests about query_one
f29015f
See Textualize#1096
Once done, a TODO item in test_widget_mounting.py can be uncommented and put into play (if/when #1095 is merged).
test_widget_mounting.py
Sorry, something went wrong.
Change query_one so that it raises an error on multiple hits
c1cfdff
As part of this, add a only_one method to DOMQuery. Addresses Textualize#1096.
Did we solve your problem?
Glad we could help!
No branches or pull requests
The
query_one
method should raise an exception if there isn't exactly one result from the query.The text was updated successfully, but these errors were encountered: