Skip to content

Commit

Permalink
Added django_grpc_testtools.FakeServicerContext
Browse files Browse the repository at this point in the history
  • Loading branch information
Stan Misiurev committed Feb 10, 2020
1 parent 0228b25 commit 150db8a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 17 deletions.
12 changes: 0 additions & 12 deletions HISTORY.md

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -78,11 +78,11 @@ structure or generator. You need to provide them with only 2 parameters:
request (protobuf structure or generator) and context (use `FakeServicerContext` from the example below).

### Fake Context
You can pass instance of `django_grpc_testtools.FakeServicerContext` to your gRPC method
You can pass instance of `django_grpc_testtools.context.FakeServicerContext` to your gRPC method
to verify how it works with context (aborts, metadata and etc.).
```python
import grpc
from django_grpc_testtools import FakeServicerContext
from django_grpc_testtools.context import FakeServicerContext
from tests.sampleapp.servicer import Greeter
from tests.sampleapp.helloworld_pb2 import HelloRequest

Expand Down
2 changes: 1 addition & 1 deletion django_grpc/__version__.py
@@ -1 +1 @@
__version__ = '1.0.5'
__version__ = '1.0.6'
2 changes: 0 additions & 2 deletions django_grpc_testtools/__init__.py
@@ -1,2 +0,0 @@
from .context import FakeServicerContext
from .executor import TestGRPCServer

0 comments on commit 150db8a

Please sign in to comment.