(origin: Repository, clone: Repository, remote: Remote)
| 540 | |
| 541 | |
| 542 | def test_push_threads(origin: Repository, clone: Repository, remote: Remote) -> None: |
| 543 | from pygit2 import RemoteCallbacks |
| 544 | |
| 545 | callbacks = RemoteCallbacks() |
| 546 | remote.push(['refs/heads/master'], callbacks) |
| 547 | assert callbacks.push_options.pb_parallelism == 1 |
| 548 | |
| 549 | callbacks = RemoteCallbacks() |
| 550 | remote.push(['refs/heads/master'], callbacks, threads=0) |
| 551 | assert callbacks.push_options.pb_parallelism == 0 |
| 552 | |
| 553 | callbacks = RemoteCallbacks() |
| 554 | remote.push(['refs/heads/master'], callbacks, threads=1) |
| 555 | assert callbacks.push_options.pb_parallelism == 1 |
| 556 | |
| 557 | |
| 558 | def test_push_negotiation( |
nothing calls this directly
no test coverage detected
searching dependent graphs…