Releases: pennsignals/dsdk
Releases · pennsignals/dsdk
0.3.7
Add batch_cls as a property of a service, and as a parameter to the constructor.
Allow users to subclass service and substitute the class used for the batch by changing the default parameter:
class MockBatch(Batch):
def __init__(self, ...):
# add new properties here
super().__init__(...)
class MockService(..., Service):
def __init__(self, **kwargs):
super().__init__(batch_cls=MockBatch, **kwargs)
... alternatively pass a pseudo constructor function that returns a configured Mock:
def mock_batch():
"""Likely this is a test fixture.
batch = Batch(...)
# monkey patch up batch here...
return batch
class MockService(..., Service):
def __init__(self, **kwargs):
super().__init__(batch_cls=mock_batch, **kwargs)
0.3.6
0.3.5
0.3.5-rc.4
Tag the correct branch maybe....
0.3.5-rc.2
Add exclude to postgres
0.3.5-rc.1
Update test instructions
0.3.5-rc.3
Fix unhashable set.