Skip to content
Snippets Groups Projects
Commit e5a54fef authored by Georges Racinet's avatar Georges Racinet
Browse files

bootstrap: demo CommitService servicer tested with pytest

We use the `pytest-grpc` helpers.

This implements only the `FindCommit` RPC call, but in a complete
manner.

This raises several questions:

- for now, we have a single `servicer` module, but Gitaly has many
  services:  How shall we organize our code?
- the fixtures for gRPC server have the module scope. Shall we have
  such a fixture for each service?
- will we be able to create commits directly with the Gitaly API in
  the future?
- do we want to separate the tests in several layers, ie those that
  don't need a gRPC server (unit-testing the `changectx_to` functions)
  and those that do?
parent 7196784b
No related branches found
No related tags found
1 merge request!1Bootstrapping hgitaly development
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment