Skip to content

Commit cfb2802

Browse files
committed
Allow positional port argument for Neo4jContainer.
1 parent 703d975 commit cfb2802

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
@@ -38,7 +38,7 @@ class Neo4jContainer(DbContainer):
3838
... result = session.run("MATCH (n) RETURN n LIMIT 1")
3939
... record = result.single()
4040
"""
41-
def __init__(self, image: str = "neo4j:latest", *, port: int = 7687,
41+
def __init__(self, image: str = "neo4j:latest", port: int = 7687,
4242
password: Optional[str] = None, username: Optional[str] = None, **kwargs) -> None:
4343
raise_for_deprecated_parameter(kwargs, "bolt_port", "port")
4444
super(Neo4jContainer, self).__init__(image, **kwargs)

0 commit comments

Comments
 (0)