-
Notifications
You must be signed in to change notification settings - Fork 4k
Date and Time test classes #6501
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
Date and Time test classes #6501
Conversation
tconkling
left a comment
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.
Nice!
| def increment(self) -> TimeInput: | ||
| dt = datetime.combine(date.today(), self.value) + timedelta(seconds=self.step) | ||
| return self.set_value(dt.time()) | ||
|
|
||
| def decrement(self) -> TimeInput: |
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.
Can you add docstrings for these? How much do they increment by, and also - do they need to be synchronized with any frontend code? (Like, do we need to make sure that TimeInput.increment here matches the behavior of TimeInput.increment on the frontend, or is that not important?)
* develop: Dont use constraints file in scheduled builds (streamlit#6470) Reorganize tests from streamlit_test.py (streamlit#6481) Date and Time test classes (streamlit#6501)
Final widget implementations for testing framework!