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

TEST: Basic test for our switcher #584

Merged
merged 1 commit into from
Feb 8, 2022

Conversation

choldgraf
Copy link
Collaborator

This adds a simple regression test for our switcher templating code, to make sure that the HTML structure it generates doesn't change over time.

It does not test all of the switcher's behavior (since this requires JavaScript), but includes a note about this so that it's clear for others what we are / aren't testing.

I added this because in reading through #576 I wanted to ask for a test, but then realized there were no tests at all for this, and when I tried to implement one, realized that it was more complicated because of the JavaScript dependency. This PR makes this explicit so that others don't have to go through the same confusion. As an extra benefit, we test for the basic structure of our HTML template, so we'll catch something if that changes.

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@choldgraf choldgraf merged commit 5f9a497 into pydata:master Feb 8, 2022
@choldgraf choldgraf deleted the test-switcher branch February 8, 2022 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants