コード例 #1
0
 def test_update_readonly_field(self,
                     ctx,
                     transaction_manager: TransactionManager):
     req = AbstractTransaction(
         author=1,
     )
     with pytest.raises(ValidationError):
         transaction_manager.partially_update(ctx, req)
コード例 #2
0
    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)