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

AppTest from_function args #8183

Merged
merged 7 commits into from Feb 21, 2024

Conversation

AnOctopus
Copy link
Contributor

Describe your changes

Allows AppTest.from_function to work with a function that takes arguments, and pass arguments to it.
The new implementation also allows it to work for functions that return values or otherwise do things that are not valid as top level expressions.

GitHub Issue Link (if applicable)

#7900

Testing Plan

Basic unit test added


Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@AnOctopus AnOctopus marked this pull request as ready for review February 20, 2024 21:51
@AnOctopus AnOctopus enabled auto-merge (squash) February 21, 2024 19:17
@AnOctopus AnOctopus merged commit 5933f94 into streamlit:develop Feb 21, 2024
35 checks passed
@AnOctopus AnOctopus deleted the feat/from-function-args branch February 21, 2024 19:59
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Apr 16, 2024
## Describe your changes
Allows `AppTest.from_function` to work with a function that takes
arguments, and pass arguments to it.
The new implementation also allows it to work for functions that return
values or otherwise do things that are not valid as top level
expressions.

## GitHub Issue Link (if applicable)
streamlit#7900
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants