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

[Cater-Waiter]: Reduced the Overall Number of Set Tests to 82 #2615

Merged
merged 1 commit into from
Sep 29, 2021

Conversation

BethanyG
Copy link
Member

Fixes (we hope!) #2504

Reduced the number of tests by using slices to pick every second (or in some cases third) item in the test data, thereby cutting the tests by 50% or 60%. While this makes the tests less easy to read, it avoids hours of hand-reducing the big test data file, and can easily be modified to add or subtract cases.

Also did some small cleanups on the test data file itself. With any luck, this solves our PyLInt whiney problem. We'll need to test that on the website though.

@BethanyG BethanyG requested review from J08K and a team September 29, 2021 06:16
@BethanyG BethanyG linked an issue Sep 29, 2021 that may be closed by this pull request
@BethanyG BethanyG added the x:size/large Large amount of work label Sep 29, 2021
@@ -12,7 +12,8 @@

from sets_categories_data import (VEGAN,
VEGETARIAN,
KETO, PALEO,
Copy link
Member

Choose a reason for hiding this comment

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

Yep, this was really important! XD

Copy link
Member

@J08K J08K left a comment

Choose a reason for hiding this comment

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

Yup, I agree that this is better. Nice work! It seems to be passing the tests. I'll approve the changes, nice! 🐍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:size/large Large amount of work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Too many tests for cater-waiter
2 participants