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

Running pytest #1

Open
laurent101 opened this issue Nov 12, 2024 · 2 comments
Open

Running pytest #1

laurent101 opened this issue Nov 12, 2024 · 2 comments

Comments

@laurent101
Copy link

laurent101 commented Nov 12, 2024

Hello,

I took your updated project for a spin. Docker containers built successfully and migrations performed as expected. However, when running pytest, only part of the tests pass, with those in api/routes/test_users.py failing due to authorization issues. It would be helpful if you could let users of your project know how to successfully run pytest. Thank you

@bibektimilsina00
Copy link
Owner

Thank you for the issue i will take a look asap.

@laurent101
Copy link
Author

Further digging showed that all tests are actually fine, but that the issue is (oddly enough) related to the scope of fixtures for normal and super-users. I had to separate users into normal user and superuser modules, after which pytest ran successfully.

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

No branches or pull requests

2 participants