def test_update_readonly_field(self, ctx, transaction_manager: TransactionManager): req = AbstractTransaction( author=1, ) with pytest.raises(ValidationError): transaction_manager.partially_update(ctx, req)
def test_happy_path(self, ctx, transaction_manager: TransactionManager): req = AbstractTransaction( name='test', attachments=None ) with pytest.raises(NotImplementedError): transaction_manager.partially_update(ctx, req)