libvcs icon indicating copy to clipboard operation
libvcs copied to clipboard

Flakey test: `src/libvcs/sync/base.py::libvcs.sync.base.BaseSync.__init__`

Open tony opened this issue 2 years ago • 0 comments

Example job (2023-10-22)

https://github.com/vcs-python/libvcs/actions/runs/6603952048/job/17937582321#step:9:64

=================================== FAILURES ===================================
_________________ [doctest] libvcs.sync.base.BaseSync.__init__ _________________
072             ...         self.run(
073             ...             ['clone', '--progress', self.url, self.dir],
074             ...             log_in_real_time=True
075             ...         )
076             >>> r = Project(
077             ...     url=f'file://{create_git_remote_repo()}',
078             ...     dir=str(tmp_path),
079             ...     progress_callback=progress_cb
080             ... )
081             >>> r.obtain()
Differences (unified diff with -expected +actual):
    @@ -1,8 +1,12 @@
    -Cloning into '...'...
    -remote: Enumerating objects: ...
    -remote: Counting objects: ...% (...)...
    -...
    -remote: Total ... (delta 0), reused 0 (delta 0), pack-reused 0
    -...
    -Receiving objects: ...% (...)...
    -...
    +Cloning into '/tmp/pytest-of-runner/pytest-0/libvcs_sync_base_BaseSync___in0'...
    +remote: Enumerating objects: 3, done.        
    +remote: Counting objects:  33% (1/3)        
+remote: Counting objects:  66% (2/3)        
+remote: Counting objects: 100% (3/3)        
+remote: Counting objects: 100% (3/3), done.        
    +Receiving objects:  33% (1/3)
+Receiving objects:  66% (2/3)
+Receiving objects: 100% (3/3)
+Receiving objects: 100% (3/3), 219 bytes | 219.00 KiB/s, done.
    +remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0        
    +

/home/runner/work/libvcs/libvcs/src/libvcs/sync/base.py:81: DocTestFailure

---------- coverage: platform linux, python 3.9.18-final-0 -----------
Coverage XML written to file coverage.xml

=========================== short test summary info ============================
FAILED src/libvcs/sync/base.py::libvcs.sync.base.BaseSync.__init__
======================== 1 failed, 280 passed in [55](https://github.com/vcs-python/libvcs/actions/runs/6603952048/job/17937582321#step:9:56).[56](https://github.com/vcs-python/libvcs/actions/runs/6603952048/job/17937582321#step:9:57)s ========================

tony avatar Oct 22 '23 13:10 tony