Remove collection repr

I find the extra info it adds to tracebacks in pytest just makes them
harder to read.
This commit is contained in:
Damien Elmes 2021-03-08 23:24:14 +10:00
parent c0e939ceb6
commit c4f6ec99f7

View file

@ -97,11 +97,6 @@ class Collection:
self.conf = ConfigManager(self)
self._loadScheduler()
def __repr__(self) -> str:
d = dict(self.__dict__)
del d["models"]
return f"{super().__repr__()} {pprint.pformat(d, width=300)}"
def name(self) -> Any:
return os.path.splitext(os.path.basename(self.path))[0]