Skip to content

remove pytest classes#125

Open
bashir-abdelwahed wants to merge 1 commit into
celery:masterfrom
bashir-abdelwahed:simplify-tests
Open

remove pytest classes#125
bashir-abdelwahed wants to merge 1 commit into
celery:masterfrom
bashir-abdelwahed:simplify-tests

Conversation

@bashir-abdelwahed

@bashir-abdelwahed bashir-abdelwahed commented Mar 14, 2025

Copy link
Copy Markdown

Pytest Classes are important if we want share parametrization between tests, which is a feature we don't use in vine's tests. This is why i suggest to remove it.
The goal is to remove any code that isn't needed and that clutters the code base.

@auvipy

auvipy commented Mar 15, 2025

Copy link
Copy Markdown
Member

may I ask what this changes going to achieve?

@bashir-abdelwahed

Copy link
Copy Markdown
Author

Of course!
The goal is to remove any code that isn't needed. This helps maintaining the project.

@auvipy auvipy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

your change is increasing number of code rather then reducing, so I was asking, what will be the benefits of the proposed changes

@bashir-abdelwahed

Copy link
Copy Markdown
Author

The reason the number of lines increasing instead of decreasing is the newlines insterted between functions (tests). Functions must have 2 lines between them, while methods should have line of difference between them.

@Nusnus Nusnus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  1. The PR's title and description are somewhat contradicting.
  2. I don't understand the motivation for these changes; why?

@bashir-abdelwahed

Copy link
Copy Markdown
Author

I updated the description. Do you find it satisfactory ?

@Nusnus

Nusnus commented Mar 20, 2025

Copy link
Copy Markdown
Member

I updated the description. Do you find it satisfactory ?

Thank you!

which is a feature we don't use in vine's tests.

Why? Pytest parametrization is actually a great feature. I’d think we want to upgrade to it, not remove it.
Also, it is not restricted to classes, so I’m not sure why this change is helpful.


Take note vine isn’t so active in terms of development; there’s much more work to be done over celery and kombu if you want to contribute 🤓

@bashir-abdelwahed

Copy link
Copy Markdown
Author

Thank you for your quick response.
Yes I want to contribute, but I thought that it would be a good idea to start from the bottom up rather than starting directly in celery.
The most annoying thing for me in celery is not having types when I read the source code, which hinders my experience considerably while reading the code during debugging.
If there is a clear plan to type the project, can you point me to it ? If there isn't, I suggest we make one and start working on it for the next releases

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.

3 participants