Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_spec.py::TestCoreMetadataV* fail with AssertionError #1877

Open
GaetanLepage opened this issue Jan 7, 2025 · 0 comments
Open

test_spec.py::TestCoreMetadataV* fail with AssertionError #1877

GaetanLepage opened this issue Jan 7, 2025 · 0 comments

Comments

@GaetanLepage
Copy link

When running the hatch test suite, in addition of the failures reported in #1850, I get the following ones:

=========================== short test summary info ============================
FAILED tests/backend/metadata/test_spec.py::TestProjectMetadataFromCoreMetadata::test_license_files - AssertionError: assert {'license-fil...ion': '0.1.0'} == {'license-fil...io...
FAILED tests/backend/metadata/test_spec.py::TestCoreMetadataV21::test_license_expression[construct_metadata_file_2_1] - AssertionError: assert 'Metadata-Ver...icense: MIT\n' == 'Metadata-Ver...es...
FAILED tests/backend/metadata/test_spec.py::TestCoreMetadataV23::test_all[construct_metadata_file_2_3] - AssertionError: assert 'Metadata-Ver...est content\n' == 'Metadata-Ver...es...
FAILED tests/backend/metadata/test_spec.py::TestCoreMetadataV22::test_all[construct_metadata_file_2_2] - AssertionError: assert 'Metadata-Ver...est content\n' == 'Metadata-Ver...es...
FAILED tests/backend/metadata/test_spec.py::TestCoreMetadataV21::test_all[construct_metadata_file_2_1] - AssertionError: assert 'Metadata-Ver...est content\n' == 'Metadata-Ver...es...
FAILED tests/backend/metadata/test_spec.py::TestCoreMetadataV23::test_license_expression[construct_metadata_file_2_3] - AssertionError: assert 'Metadata-Ver... Apache-2.0\n' == 'Metadata-Ver... A...
FAILED tests/backend/metadata/test_spec.py::TestCoreMetadataV23::test_license_files[construct_metadata_file_2_3] - AssertionError: assert 'Metadata-Ver...sion: 0.1.0\n' == 'Metadata-Ver...SE...
FAILED tests/backend/metadata/test_spec.py::TestCoreMetadataV22::test_license_expression[construct_metadata_file_2_2] - AssertionError: assert 'Metadata-Ver...icense: MIT\n' == 'Metadata-Ver...es...
================= 8 failed, 1481 passed, 116 skipped in 8.75s ==================

Example message:

>       assert constructor(metadata) == helpers.dedent(
            """
            Metadata-Version: 2.3
            Name: My.App
            Version: 0.1.0
            License-Expression: MIT OR Apache-2.0
            """
        )
E       AssertionError: assert 'Metadata-Ver... Apache-2.0\n' == 'Metadata-Ver... Apache-2.0\n'
E
E         Skipping 47 identical leading characters in diff, use -v to show
E           .0
E         - License-Expression: MIT OR Apache-2.0
E         ?        -----------
E         + License: MIT OR Apache-2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant