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 are not independent of each other #1

Open
abdurraheemali opened this issue Jul 6, 2023 · 0 comments
Open

Tests are not independent of each other #1

abdurraheemali opened this issue Jul 6, 2023 · 0 comments

Comments

@abdurraheemali
Copy link

test_update_node assumes there is already a node with id 1 in the database. This is the case if we run test_save_node first, but if the tests are run in a different order, that could cause failures.

One fix could be to use a test database that is reset before each test.

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

1 participant