Skip to content

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 a team and J08K 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

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