Skip to content

TST: Additions/updates to tests #56822

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

Merged

Conversation

jomorodi
Copy link
Contributor

@jomorodi jomorodi commented Jan 11, 2024

wrote a test for #56717

test function name is test_deprecation_warning_for_usage_of_aaply_map_index_method_of_styler_object
The original function that was tested was the Styler.applymap_index in the style module
The new test was appended to the test_style module file
The test checks for the FutureWarning

@mroeschke mroeschke added Testing pandas testing functions or related to the test suite Styler conditional formatting using DataFrame.style labels Jan 11, 2024
@mroeschke mroeschke added this to the 3.0 milestone Jan 11, 2024
@mroeschke mroeschke merged commit fa5e835 into pandas-dev:main Jan 11, 2024
@mroeschke
Copy link
Member

Thanks @jomorodi

pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
* A test for Future warning in the applymap_index method of the style class

* Minor modification changig pd.Dataframe to Dataframe

* Minor modification in matching message

* changed the apply_index method to  applymap_index

* Minor formatting adding extra space

* Removed the docstring

* modified the function passed into the the function been tested
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Styler conditional formatting using DataFrame.style Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TST: test for Styler.applymap_index
2 participants