8000 TypeError: object.__new__() takes exactly one argument (the type to instantiate) · Issue #401 · testcontainers/testcontainers-python · GitHub
[go: up one dir, main page]

Skip to content

TypeError: object.__new__() takes exactly one argument (the type to instantiate) #401

@covatic-john

Description

@covatic-john

Describe the bug

running testcontainers in a pytest using a with statement I get the following error

@wait_container_is_ready()
def _connect(self) -> MongoClient:
  return MongoClient(self.get_connection_url())

E TypeError: object.new() takes exactly one argument (the type to instantiate)

Just wondering if anyone else has encountered this

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0