Closed eumiro closed 3 years ago
Closes #21
Oh I just noticed the coverage disappeared. Maybe it broke when I moved the repo.
I have now added a new commit with renamed test functions. Please review and give any better name. I'll change it then accordingly and at the end squash all commits.
(because who would ever type removel
into a commit message anyway :facepalm:)
I'll change it then accordingly and at the end squash all commits.
omg I didn't mean to criticize you already do nice clean commits I AM SO SORRY 🙏
Converted all tests to pytest.
There are still three issues:
test_30_zip_single_file
fails forfile
/libmagic
5.39, marked it asxfail
for now, discussed in #20test_20_passing_file_name
was identical totest_10_passing_file_object
, so I changed it according to its title and it should pass, but doesn't; but since I am not sure what it should do exactly, it's okay to xfailtest_40_7z_multiple_files
fails because a test file cannot be found. I converted most(?) temporary files topytest
'stmp_path
fixture, so they go to/tmp/pytest-of-$USER/
and can be found after the test is over, but there is still some problem with filenames inArchiveTemp
, so I'll have to look into it. This is also an excellent reason to usepathlib.Path
everywhere the file system is touchedIf you have any questions, please feel free to discuss them, I am still discovering some dark corners of
pytest
.