Add tests

This commit is contained in:
lordwelch 2022-05-21 00:16:45 -07:00
parent 1c39165fcc
commit bb2852822d
2 changed files with 3 additions and 6 deletions

View File

@ -120,9 +120,3 @@ class IssueString:
return 0.5 return 0.5
return self.num return self.num
def as_int(self) -> Optional[int]:
# return the int version of the float
if self.num is None:
return None
return int(self.num)

View File

@ -270,6 +270,9 @@ class ImprintDict(dict):
else: else:
return (item, self.publisher, True) return (item, self.publisher, True)
def copy(self) -> "ImprintDict":
return ImprintDict(self.publisher, super().copy())
publishers: dict[str, ImprintDict] = {} publishers: dict[str, ImprintDict] = {}