Skip to content

Commit

Permalink
docs: updated limits
Browse files Browse the repository at this point in the history
  • Loading branch information
YizYah committed Jun 16, 2021
1 parent 6b37d1e commit 981503b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,8 @@ testQuerySet(querySet: QuerySpec[], databaseInfo: DatabaseInfo)
```
See [Checking the Validity of Your Mocked Queries](#checking-the-validity-of-your-mocked-queries) above.




# <a name="heavy_exclamation_mark-limits"></a>:heavy_exclamation_mark: Limits
1. This package will not help you to test a section of code where you explicitly declare a session using neo4j-driver. Rather, it helps when you can pass in a session as a parameter.

That is a limitation, but arguably it is better style anyway to pass in a session as an argument. Doing so isolates entirely the session and database info from the queries being performed.
1. This package will not help you to test a section of code where you explicitly declare a session using neo4j-driver unless you stub the driver and overwrite the method `session()`. The intended use case is when a session is passed in as a parameter. But arguably passing in a session is better style anyway. Doing so isolates entirely the session and database info from the queries being performed.

2. The optional `config` parameter for a `Session.run()` is not supported currently.

Expand Down

0 comments on commit 981503b

Please sign in to comment.