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

tests: make FastAPI & Litestar tests optional #132

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

Lancetnik
Copy link
Contributor

I just moved FastAPI and Litestart - related tests to a separated directories with pytest.importorskip("lib") modificator

It allows to run tests without installed fastapi or litstar dependencies - in this case pytest just skips the dir.
Such trick can be helpful to upgrade the library CI to upper python version without all tests dependencies support (you can just do not install them in latest python CI)

So, I hope, this PR should help you with #100 a bit

@lesnik512
Copy link
Member

@Lancetnik Hi) interesting idea, thanks! I'll try

@lesnik512 lesnik512 merged commit 5cb1d48 into modern-python:main Dec 17, 2024
4 checks passed
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