Skip to content

Commit 14761b1

Browse files
committed
Fix default username in neo4j.
1 parent 95dc6ca commit 14761b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo4j/testcontainers/neo4j/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Neo4jContainer(DbContainer):
4040
def __init__(self, image: str = "neo4j:latest", *, bolt_port: int = 7687,
4141
password: Optional[str] = None, username: Optional[str] = None, **kwargs) -> None:
4242
super(Neo4jContainer, self).__init__(image, **kwargs)
43-
self.username = username or os.environ.get("NEO4J_USER", "password")
43+
self.username = username or os.environ.get("NEO4J_USER", "neo4j")
4444
self.password = password or os.environ.get("NEO4J_PASSWORD", "password")
4545
self.bolt_port = bolt_port
4646
self.with_exposed_ports(self.bolt_port)

0 commit comments

Comments
 (0)