Package Details: python-jschon 0.11.1-2

Git Clone URL: https://aur.archlinux.org/python-jschon.git (read-only, click to copy)
Package Base: python-jschon
Description: Object-oriented JSON Schema implementation for Python
Upstream URL: https://github.com/marksparkza/jschon
Licenses: MIT
Submitter: Auerhuhn
Maintainer: Auerhuhn
Last Packager: Auerhuhn
Votes: 0
Popularity: 0.000000
First Submitted: 2024-06-03 18:16 (UTC)
Last Updated: 2024-12-22 19:48 (UTC)

Latest Comments

Auerhuhn commented on 2025-01-27 20:09 (UTC) (edited on 2025-01-27 20:09 (UTC) by Auerhuhn)

@turmoni I can’t reproduce the failure even with python-pytest-localserver installed. Does the build still fail for you if you try building in a clean chroot?

turmoni commented on 2025-01-27 18:47 (UTC)

For some reason that I don't entirely understand (because I don't really understand the test setup), the tests error if you have python-pytest-localserver installed, with three failures along the following lines:

base_uri = 'http://example.com/', httpserver = <ContentServer(<class 'pytest_localserver.http.ContentServer'>, started 132760417040064)>, new_catalog = Catalog('8c16a2f5-a372-46b8-a1a9-6d0d53ca6ed0')

    @pytest.mark.parametrize('base_uri', [
        'http://example.com/',
        'http://example.com/foo/',
        'http://example.com/foo/bar/',
    ])
    def test_remote_source(base_uri, httpserver, new_catalog):
>       new_catalog.add_uri_source(URI(base_uri), RemoteSource(URI(httpserver.url_for(''))))
E       AttributeError: 'ContentServer' object has no attribute 'url_for'

tests/test_catalog.py:134: AttributeError