file 5.40 incompability
The new file 5.40 version, introduces new incompatibilities with the tests.
_________________________ test_text_proper_indentation _________________________
capsys = <_pytest.capture.CaptureFixture object at 0x7f89d0572130>
@skip_unless_file_version_is_at_least("5.39")
def test_text_proper_indentation(capsys):
out = run(capsys, pair=("archive1.tar", "archive2.tar"))
> assert out == get_data("archive12.diff.txt")
E AssertionError: assert '--- archive1... b.\n' == '--- archive1... -a\n│ │ +b\n'
E Skipping 545 identical leading characters in diff, use -v to show
E 1 @@
E - │ │ -a
E - │ │ +b
E + │ │ -00000000: 610a a.
E + │ │ +00000000: 620a b.
tests/test_presenters.py:92: AssertionError
Seems the compression method is now added...
_______________________________ test_difference ________________________________
differences = [<Difference filetype from file(1) -- filetype from file(1) []>, <Difference filetype from diffoscope -- filetype from...ent -- r/r.zip []>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]
@skip_unless_file_version_is_at_least("5.37")
def test_difference(differences):
expected_diff = get_data("quine_expected_diff")
> assert differences[0].unified_diff == expected_diff
E AssertionError: assert '@@ -1 +1 @@\...hod=deflate\n' == '@@ -1 +1 @@\... to extract\n'
E Skipping 124 identical leading characters in diff, use -v to show
E - to extract
E + to extract, compression method=deflate
tests/test_quines.py:57: AssertionError
File now recognizes opengpg public keys
_____________________________ test_guess_file_type _____________________________
def test_guess_file_type():
> assert File.guess_file_type(TEST_FILE1_PATH) == "data"
E AssertionError: assert 'OpenPGP Public Key' == 'data'
E - data
E + OpenPGP Public Key
tests/comparators/test_binary.py:59: AssertionError
=========================== short test summary info ============================
FAILED tests/test_presenters.py::test_text_proper_indentation - AssertionErro...
FAILED tests/test_quines.py::test_difference - AssertionError: assert '@@ -1 ...
FAILED tests/comparators/test_binary.py::test_guess_file_type - AssertionErro...
=========== 3 failed, 378 passed, 81 skipped, 9 deselected in 46.13s ===========