Skip to content
Discussion options

You must be logged in to vote

Okay, I found the reason uv run python -m pytest fails at collection. While I was playing around with SQLModel a while ago, I made a file named sqlmodel_test.py in my project root which I did not add to git. In that file, I redefine my models, so pytest tried to reload those models.

uv run python -m pytest tests/ works fine. How silly of me. Thank you again for your time.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@wumofei
Comment options

@Muguett-DBY
Comment options

@wumofei
Comment options

@wumofei
Comment options

Answer selected by wumofei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants