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 for neo4j-related code #14

Open
y1zhou opened this issue Jan 19, 2022 · 4 comments
Open

Tests for neo4j-related code #14

y1zhou opened this issue Jan 19, 2022 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@y1zhou
Copy link
Owner

y1zhou commented Jan 19, 2022

Is there a way to mock the neo4j database? If not then how can the database-related code be tested?

@y1zhou y1zhou added the help wanted Extra attention is needed label Jan 19, 2022
@y1zhou y1zhou pinned this issue Jan 19, 2022
@y1zhou
Copy link
Owner Author

y1zhou commented Jan 23, 2022

At least after 08940bf the SBML and dat file parsing code can be tested.

@y1zhou
Copy link
Owner Author

y1zhou commented Mar 31, 2022

Following this repo, seems like pytest-mock could be used.

@y1zhou
Copy link
Owner Author

y1zhou commented Apr 27, 2022

Partially fixed in 3ad7217.

@y1zhou y1zhou closed this as completed Apr 27, 2022
@y1zhou
Copy link
Owner Author

y1zhou commented Apr 28, 2022

Database-related code can be mocked during testing, but how should the Cypher queries be validated?

@y1zhou y1zhou reopened this Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant