This repository has been archived by the owner on Mar 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests hardcoded to use password, so fix that
Get the password from the environment (NEO4J_PASSWORD) or fallback to "password" like we were using before. This allows easier testing against other instances.
- Loading branch information
Showing
15 changed files
with
54 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#!/usr/bin/env python | ||
import os | ||
from neo4j import debug | ||
import neo4j | ||
|
||
debug.watch("neo4j") | ||
password = os.environ.get("NEO4J_PASSWORD", "password") | ||
|
||
with neo4j.GraphDatabase.driver("bolt://localhost:8888", auth=("neo4j", "password")) as driver: | ||
with neo4j.GraphDatabase.driver("bolt://localhost:8888", auth=("neo4j", password)) as driver: | ||
with driver.session(database="neo4j") as s: | ||
pass | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
#!/usr/bin/env python | ||
import os | ||
from neo4j import debug | ||
import neo4j | ||
|
||
debug.watch("neo4j") | ||
|
||
with neo4j.GraphDatabase.driver("bolt://localhost:8888", auth=("neo4j", "password")) as driver: | ||
password = os.environ.get("NEO4J_PASSWORD", "password") | ||
|
||
with neo4j.GraphDatabase.driver("bolt://localhost:8888", auth=("neo4j", password)) as driver: | ||
for i in range(1, 3): | ||
with driver.session(database="neo4j") as s: | ||
r = s.run('return 1') | ||
for i in r: | ||
print(i) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#!/usr/bin/env python | ||
import os | ||
from neo4j import debug | ||
import neo4j | ||
|
||
debug.watch("neo4j") | ||
password = os.environ.get("NEO4J_PASSWORD", "password") | ||
|
||
with neo4j.GraphDatabase.driver("bolt://localhost:8888", auth=("neo4j", "password")) as driver: | ||
with neo4j.GraphDatabase.driver("bolt://localhost:8888", auth=("neo4j", password)) as driver: | ||
with driver.session(database="neo4j") as s: | ||
s.run('return 1').consume() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters