-
Notifications
You must be signed in to change notification settings - Fork 255
Add test setup for each component #68
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
Add test setup for each component #68
Conversation
cb65182 to
ebfae49
Compare
| # "name" argument without having it get recreated. | ||
| name_input = st.text_input("Enter a name", value="Streamlit") | ||
| num_clicks = my_component(name_input, key="foo") | ||
| st.markdown("You've clicked %s times!" % int(num_clicks)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to update the component guide now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
|
|
||
| def _find_free_port(): | ||
| with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as s: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great if the code in our templates had more docstrings. For each method you can write something to make the code easier to use. We should also type hints.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's ok I will do this in all utils files sync PR

Add simple test case and setup for each component and template.