Finishing testing promises.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adsooi 2024-10-17 03:38:36 +02:00
parent ef465b34e7
commit a182c703f4
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
8 changed files with 114 additions and 36 deletions

View file

@ -21,7 +21,7 @@ from typing import Callable, Self
from .base import Assertion, repr_, AssertionInterface
from .int import NumberComparisonAssertionInterface
PRINT_PREFIX = (" " * 24)
PRINT_PREFIX = (" " * 3)
class SpyAssertion(Assertion):

View file

@ -30,4 +30,4 @@ class Spy:
def __call__(self, *args, **kwargs):
self.calls.append((args, kwargs))
if self.function is not None:
self.function(*args, **kwargs)
return self.function(*args, **kwargs)