Package: src:pydiscovergy
Version: 3.1.0-1
Severity: serious
Tags: ftbfs trixie sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" 
module
I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13  
* Building wheel...

[... snipped ...]

            "meterId": "f8d610b7a8cc4e73939fa33b990ded54",
            "from": "1673004274648",
        }
    
        mock_req = respx_mock.get("/statistics", params=params).respond(
            text=load_fixture("statistics.json"),
        )
    
>       statistics = await discovergy_mock.meter_statistics(
            meter_id="f8d610b7a8cc4e73939fa33b990ded54",
            start_time=datetime.datetime.fromtimestamp(1673004274648 / 1000, 
datetime.UTC),
        )

tests/test_discovergy.py:230: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pydiscovergy/discovergy.py:184: in meter_statistics
    statistics = await self._get("/statistics", params)
pydiscovergy/discovergy.py:47: in _get
    response = await client.get(url=API_BASE + path, params=params)
/usr/lib/python3/dist-packages/httpx/_client.py:1768: in get
    return await self.request(
/usr/lib/python3/dist-packages/httpx/_client.py:1540: in request
    return await self.send(request, auth=auth, 
follow_redirects=follow_redirects)
/usr/lib/python3/dist-packages/httpx/_client.py:1629: in send
    response = await self._send_handling_auth(
/usr/lib/python3/dist-packages/httpx/_client.py:1657: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/lib/python3/dist-packages/httpx/_client.py:1694: in 
_send_handling_redirects
    response = await self._send_single_request(request)
/usr/lib/python3/dist-packages/httpx/_client.py:1730: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/lib/python3/dist-packages/httpx/_transports/default.py:394: in 
handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/lib/python3/dist-packages/respx/mocks.py:190: in amock
    response = await cls._send_async_request(
/usr/lib/python3/dist-packages/respx/mocks.py:224: in _send_async_request
    httpx_response = await cls.async_handler(httpx_request)
/usr/lib/python3/dist-packages/respx/mocks.py:136: in async_handler
    raise assertion_error
/usr/lib/python3/dist-packages/respx/mocks.py:129: in async_handler
    httpx_response = await router.async_handler(httpx_request)
/usr/lib/python3/dist-packages/respx/router.py:318: in async_handler
    resolved = await self.aresolve(request)
/usr/lib/python3/dist-packages/respx/router.py:291: in aresolve
    with self.resolver(request) as resolved:
/usr/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <respx.router.MockRouter object at 0x7f916f2f3980>
request = <Request(b'GET', 
'https://api.inexogy.com/public/v1/statistics?meterId=f8d610b7a8cc4e73939fa33b990ded54&from=1673004274648')>

    @contextmanager
    def resolver(self, request: httpx.Request) -> Generator[ResolvedRoute, 
None, None]:
        resolved = ResolvedRoute()
    
        try:
            yield resolved
    
            if resolved.route is None:
                # Assert we always get a route match, if check is enabled
                if self._assert_all_mocked:
>                   raise AllMockedAssertionError(f"RESPX: {request!r} not 
> mocked!")
E                   respx.models.AllMockedAssertionError: RESPX: 
<Request(b'GET', 
'https://api.inexogy.com/public/v1/statistics?meterId=f8d610b7a8cc4e73939fa33b990ded54&from=1673004274648')>
 not mocked!

/usr/lib/python3/dist-packages/respx/router.py:250: AllMockedAssertionError
__________________________ test_fetch_consumer_token ___________________________

respx_mock = <respx.router.MockRouter object at 0x7f916f2e4500>
tokenauth_mock = TokenAuth(consumer_token=ConsumerToken(key='key123', 
secret='secret123'), access_token=AccessToken(token='access_token', 
token_secret='access_token_secret'), app_name='pydicovergy')

    @pytest.mark.respx(base_url=API_BASE)
    async def test_fetch_consumer_token(
        respx_mock: MockRouter, tokenauth_mock: TokenAuth
    ) -> None:
        """Test if a consumer token is fetched."""
        mock_req = respx_mock.post("/oauth1/consumer_token").respond(
            json={"key": "key123", "secret": "secret123"},
        )
    
>       consumer_token = await tokenauth_mock._fetch_consumer_token()

tests/test_token.py:27: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pydiscovergy/authentication/tokenauth.py:124: in _fetch_consumer_token
    consumer_response = await client.post(
/usr/lib/python3/dist-packages/httpx/_client.py:1859: in post
    return await self.request(
/usr/lib/python3/dist-packages/httpx/_client.py:1540: in request
    return await self.send(request, auth=auth, 
follow_redirects=follow_redirects)
/usr/lib/python3/dist-packages/httpx/_client.py:1629: in send
    response = await self._send_handling_auth(
/usr/lib/python3/dist-packages/httpx/_client.py:1657: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/lib/python3/dist-packages/httpx/_client.py:1694: in 
_send_handling_redirects
    response = await self._send_single_request(request)
/usr/lib/python3/dist-packages/httpx/_client.py:1730: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/lib/python3/dist-packages/httpx/_transports/default.py:394: in 
handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/lib/python3/dist-packages/respx/mocks.py:190: in amock
    response = await cls._send_async_request(
/usr/lib/python3/dist-packages/respx/mocks.py:224: in _send_async_request
    httpx_response = await cls.async_handler(httpx_request)
/usr/lib/python3/dist-packages/respx/mocks.py:136: in async_handler
    raise assertion_error
/usr/lib/python3/dist-packages/respx/mocks.py:129: in async_handler
    httpx_response = await router.async_handler(httpx_request)
/usr/lib/python3/dist-packages/respx/router.py:318: in async_handler
    resolved = await self.aresolve(request)
/usr/lib/python3/dist-packages/respx/router.py:291: in aresolve
    with self.resolver(request) as resolved:
/usr/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <respx.router.MockRouter object at 0x7f916f2e4500>
request = <Request(b'POST', 
'https://api.inexogy.com/public/v1/oauth1/consumer_token')>

    @contextmanager
    def resolver(self, request: httpx.Request) -> Generator[ResolvedRoute, 
None, None]:
        resolved = ResolvedRoute()
    
        try:
            yield resolved
    
            if resolved.route is None:
                # Assert we always get a route match, if check is enabled
                if self._assert_all_mocked:
>                   raise AllMockedAssertionError(f"RESPX: {request!r} not 
> mocked!")
E                   respx.models.AllMockedAssertionError: RESPX: 
<Request(b'POST', 'https://api.inexogy.com/public/v1/oauth1/consumer_token')> 
not mocked!

/usr/lib/python3/dist-packages/respx/router.py:250: AllMockedAssertionError
___________________________ test_fetch_request_token ___________________________

self = TokenAuth(consumer_token=ConsumerToken(key='key123', 
secret='secret123'), access_token=AccessToken(token='access_token', 
token_secret='access_token_secret'), app_name='pydicovergy')

    async def _fetch_request_token(self) -> RequestToken:
        """Fetch request token."""
        async with AsyncOAuth1Client(
            client_id=self.consumer_token.key,
            client_secret=self.consumer_token.secret,
        ) as client:
            try:
>               oauth_token_response = await client.fetch_request_token(
                    API_REQUEST_TOKEN,
                )

pydiscovergy/authentication/tokenauth.py:155: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3/dist-packages/authlib/integrations/httpx_client/oauth1_client.py:91:
 in _fetch_token
    resp = await self.post(url, **kwargs)
/usr/lib/python3/dist-packages/httpx/_client.py:1859: in post
    return await self.request(
/usr/lib/python3/dist-packages/httpx/_client.py:1540: in request
    return await self.send(request, auth=auth, 
follow_redirects=follow_redirects)
/usr/lib/python3/dist-packages/httpx/_client.py:1629: in send
    response = await self._send_handling_auth(
/usr/lib/python3/dist-packages/httpx/_client.py:1657: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/lib/python3/dist-packages/httpx/_client.py:1694: in 
_send_handling_redirects
    response = await self._send_single_request(request)
/usr/lib/python3/dist-packages/httpx/_client.py:1730: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/lib/python3/dist-packages/httpx/_transports/default.py:394: in 
handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/lib/python3/dist-packages/respx/mocks.py:190: in amock
    response = await cls._send_async_request(
/usr/lib/python3/dist-packages/respx/mocks.py:224: in _send_async_request
    httpx_response = await cls.async_handler(httpx_request)
/usr/lib/python3/dist-packages/respx/mocks.py:136: in async_handler
    raise assertion_error
/usr/lib/python3/dist-packages/respx/mocks.py:129: in async_handler
    httpx_response = await router.async_handler(httpx_request)
/usr/lib/python3/dist-packages/respx/router.py:318: in async_handler
    resolved = await self.aresolve(request)
/usr/lib/python3/dist-packages/respx/router.py:291: in aresolve
    with self.resolver(request) as resolved:
/usr/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <respx.router.MockRouter object at 0x7f916f276cf0>
request = <Request(b'POST', 
'https://api.inexogy.com/public/v1/oauth1/request_token')>

    @contextmanager
    def resolver(self, request: httpx.Request) -> Generator[ResolvedRoute, 
None, None]:
        resolved = ResolvedRoute()
    
        try:
            yield resolved
    
            if resolved.route is None:
                # Assert we always get a route match, if check is enabled
                if self._assert_all_mocked:
>                   raise AllMockedAssertionError(f"RESPX: {request!r} not 
> mocked!")
E                   respx.models.AllMockedAssertionError: RESPX: 
<Request(b'POST', 'https://api.inexogy.com/public/v1/oauth1/request_token')> 
not mocked!

/usr/lib/python3/dist-packages/respx/router.py:250: AllMockedAssertionError

The above exception was the direct cause of the following exception:

respx_mock = <respx.router.MockRouter object at 0x7f916f276cf0>
tokenauth_mock = TokenAuth(consumer_token=ConsumerToken(key='key123', 
secret='secret123'), access_token=AccessToken(token='access_token', 
token_secret='access_token_secret'), app_name='pydicovergy')

    @pytest.mark.respx(base_url=API_BASE)
    async def test_fetch_request_token(
        respx_mock: MockRouter, tokenauth_mock: TokenAuth
    ) -> None:
        """Test if a request token is fetched."""
        mock_req = respx_mock.post("/oauth1/request_token").respond(
            json={"oauth_token": "key123", "oauth_token_secret": "secret123"},
        )
    
>       request_token = await tokenauth_mock._fetch_request_token()

tests/test_token.py:66: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = TokenAuth(consumer_token=ConsumerToken(key='key123', 
secret='secret123'), access_token=AccessToken(token='access_token', 
token_secret='access_token_secret'), app_name='pydicovergy')

    async def _fetch_request_token(self) -> RequestToken:
        """Fetch request token."""
        async with AsyncOAuth1Client(
            client_id=self.consumer_token.key,
            client_secret=self.consumer_token.secret,
        ) as client:
            try:
                oauth_token_response = await client.fetch_request_token(
                    API_REQUEST_TOKEN,
                )
                return RequestToken(
                    oauth_token_response.get("oauth_token"),
                    oauth_token_response.get("oauth_token_secret"),
                )
            except Exception as exc:
                msg = f"Request failed: {exc}"
>               raise HTTPError(msg) from exc
E               pydiscovergy.error.HTTPError: Request failed: RESPX: 
<Request(b'POST', 'https://api.inexogy.com/public/v1/oauth1/request_token')> 
not mocked!

pydiscovergy/authentication/tokenauth.py:164: HTTPError
_________________________ test_authorize_request_token _________________________

respx_mock = <respx.router.MockRouter object at 0x7f916f276270>
tokenauth_mock = TokenAuth(consumer_token=ConsumerToken(key='key123', 
secret='secret123'), access_token=AccessToken(token='access_token', 
token_secret='access_token_secret'), app_name='pydicovergy')

    @pytest.mark.respx(base_url=API_BASE)
    async def test_authorize_request_token(
        respx_mock: MockRouter, tokenauth_mock: TokenAuth
    ) -> None:
        """Test if the request token is authorized.""" ""
        mock_req = respx_mock.get("/oauth1/authorize").respond(
            content="oauth_verifier=i-am-a-verifier-string",
        )
    
>       response = await tokenauth_mock._authorize_request_token(
            "t...@example.com",
            "test123",
            "request_token",
        )

tests/test_token.py:98: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pydiscovergy/authentication/tokenauth.py:180: in _authorize_request_token
    response = await client.get(API_AUTHORIZATION, params=params)
/usr/lib/python3/dist-packages/httpx/_client.py:1768: in get
    return await self.request(
/usr/lib/python3/dist-packages/httpx/_client.py:1540: in request
    return await self.send(request, auth=auth, 
follow_redirects=follow_redirects)
/usr/lib/python3/dist-packages/httpx/_client.py:1629: in send
    response = await self._send_handling_auth(
/usr/lib/python3/dist-packages/httpx/_client.py:1657: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/lib/python3/dist-packages/httpx/_client.py:1694: in 
_send_handling_redirects
    response = await self._send_single_request(request)
/usr/lib/python3/dist-packages/httpx/_client.py:1730: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/lib/python3/dist-packages/httpx/_transports/default.py:394: in 
handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/lib/python3/dist-packages/respx/mocks.py:190: in amock
    response = await cls._send_async_request(
/usr/lib/python3/dist-packages/respx/mocks.py:224: in _send_async_request
    httpx_response = await cls.async_handler(httpx_request)
/usr/lib/python3/dist-packages/respx/mocks.py:136: in async_handler
    raise assertion_error
/usr/lib/python3/dist-packages/respx/mocks.py:129: in async_handler
    httpx_response = await router.async_handler(httpx_request)
/usr/lib/python3/dist-packages/respx/router.py:318: in async_handler
    resolved = await self.aresolve(request)
/usr/lib/python3/dist-packages/respx/router.py:291: in aresolve
    with self.resolver(request) as resolved:
/usr/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <respx.router.MockRouter object at 0x7f916f276270>
request = <Request(b'GET', 
'https://api.inexogy.com/public/v1/oauth1/authorize?oauth_token=request_token&email=test%40example.com&password=test123')>

    @contextmanager
    def resolver(self, request: httpx.Request) -> Generator[ResolvedRoute, 
None, None]:
        resolved = ResolvedRoute()
    
        try:
            yield resolved
    
            if resolved.route is None:
                # Assert we always get a route match, if check is enabled
                if self._assert_all_mocked:
>                   raise AllMockedAssertionError(f"RESPX: {request!r} not 
> mocked!")
E                   respx.models.AllMockedAssertionError: RESPX: 
<Request(b'GET', 
'https://api.inexogy.com/public/v1/oauth1/authorize?oauth_token=request_token&email=test%40example.com&password=test123')>
 not mocked!

/usr/lib/python3/dist-packages/respx/router.py:250: AllMockedAssertionError
___________________________ test_fetch_access_token ____________________________

self = TokenAuth(consumer_token=ConsumerToken(key='key123', 
secret='secret123'), access_token=AccessToken(token='access_token', 
token_secret='access_token_secret'), app_name='pydicovergy')
request_token = 'request_token', request_token_secret = 'request_token_secret'
verifier = 'i-am-a-verifier'

    async def _fetch_access_token(
        self,
        request_token: str,
        request_token_secret: str,
        verifier: str,
    ) -> AccessToken:
        """Fetch access token."""
        async with AsyncOAuth1Client(
            client_id=self.consumer_token.key,
            client_secret=self.consumer_token.secret,
            token=request_token,
            token_secret=request_token_secret,
        ) as client:
            try:
>               access_token_response = await client.fetch_access_token(
                    API_ACCESS_TOKEN,
                    verifier,
                )

pydiscovergy/authentication/tokenauth.py:214: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3/dist-packages/authlib/integrations/httpx_client/oauth1_client.py:86:
 in fetch_access_token
    token = await self._fetch_token(url, **kwargs)
/usr/lib/python3/dist-packages/authlib/integrations/httpx_client/oauth1_client.py:91:
 in _fetch_token
    resp = await self.post(url, **kwargs)
/usr/lib/python3/dist-packages/httpx/_client.py:1859: in post
    return await self.request(
/usr/lib/python3/dist-packages/httpx/_client.py:1540: in request
    return await self.send(request, auth=auth, 
follow_redirects=follow_redirects)
/usr/lib/python3/dist-packages/httpx/_client.py:1629: in send
    response = await self._send_handling_auth(
/usr/lib/python3/dist-packages/httpx/_client.py:1657: in _send_handling_auth
    response = await self._send_handling_redirects(
/usr/lib/python3/dist-packages/httpx/_client.py:1694: in 
_send_handling_redirects
    response = await self._send_single_request(request)
/usr/lib/python3/dist-packages/httpx/_client.py:1730: in _send_single_request
    response = await transport.handle_async_request(request)
/usr/lib/python3/dist-packages/httpx/_transports/default.py:394: in 
handle_async_request
    resp = await self._pool.handle_async_request(req)
/usr/lib/python3/dist-packages/respx/mocks.py:190: in amock
    response = await cls._send_async_request(
/usr/lib/python3/dist-packages/respx/mocks.py:224: in _send_async_request
    httpx_response = await cls.async_handler(httpx_request)
/usr/lib/python3/dist-packages/respx/mocks.py:136: in async_handler
    raise assertion_error
/usr/lib/python3/dist-packages/respx/mocks.py:129: in async_handler
    httpx_response = await router.async_handler(httpx_request)
/usr/lib/python3/dist-packages/respx/router.py:318: in async_handler
    resolved = await self.aresolve(request)
/usr/lib/python3/dist-packages/respx/router.py:291: in aresolve
    with self.resolver(request) as resolved:
/usr/lib/python3.13/contextlib.py:148: in __exit__
    next(self.gen)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <respx.router.MockRouter object at 0x7f916f066270>
request = <Request(b'POST', 
'https://api.inexogy.com/public/v1/oauth1/access_token')>

    @contextmanager
    def resolver(self, request: httpx.Request) -> Generator[ResolvedRoute, 
None, None]:
        resolved = ResolvedRoute()
    
        try:
            yield resolved
    
            if resolved.route is None:
                # Assert we always get a route match, if check is enabled
                if self._assert_all_mocked:
>                   raise AllMockedAssertionError(f"RESPX: {request!r} not 
> mocked!")
E                   respx.models.AllMockedAssertionError: RESPX: 
<Request(b'POST', 'https://api.inexogy.com/public/v1/oauth1/access_token')> not 
mocked!

/usr/lib/python3/dist-packages/respx/router.py:250: AllMockedAssertionError

The above exception was the direct cause of the following exception:

respx_mock = <respx.router.MockRouter object at 0x7f916f066270>
tokenauth_mock = TokenAuth(consumer_token=ConsumerToken(key='key123', 
secret='secret123'), access_token=AccessToken(token='access_token', 
token_secret='access_token_secret'), app_name='pydicovergy')

    @pytest.mark.respx(base_url=API_BASE)
    async def test_fetch_access_token(
        respx_mock: MockRouter, tokenauth_mock: TokenAuth
    ) -> None:
        """Test if an access token is fetched."""
        mock_req = respx_mock.post("/oauth1/access_token").respond(
            json={
                "oauth_token": "access_token",
                "oauth_token_secret": "access_token_secret",
            },
        )
    
>       response = await tokenauth_mock._fetch_access_token(
            "request_token",
            "request_token_secret",
            "i-am-a-verifier",
        )

tests/test_token.py:155: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = TokenAuth(consumer_token=ConsumerToken(key='key123', 
secret='secret123'), access_token=AccessToken(token='access_token', 
token_secret='access_token_secret'), app_name='pydicovergy')
request_token = 'request_token', request_token_secret = 'request_token_secret'
verifier = 'i-am-a-verifier'

    async def _fetch_access_token(
        self,
        request_token: str,
        request_token_secret: str,
        verifier: str,
    ) -> AccessToken:
        """Fetch access token."""
        async with AsyncOAuth1Client(
            client_id=self.consumer_token.key,
            client_secret=self.consumer_token.secret,
            token=request_token,
            token_secret=request_token_secret,
        ) as client:
            try:
                access_token_response = await client.fetch_access_token(
                    API_ACCESS_TOKEN,
                    verifier,
                )
                return AccessToken(
                    access_token_response.get("oauth_token"),
                    access_token_response.get("oauth_token_secret"),
                )
            except Exception as exc:
                msg = f"Request failed: {exc}"
>               raise HTTPError(msg) from exc
E               pydiscovergy.error.HTTPError: Request failed: RESPX: 
<Request(b'POST', 'https://api.inexogy.com/public/v1/oauth1/access_token')> not 
mocked!

pydiscovergy/authentication/tokenauth.py:224: HTTPError
=========================== short test summary info ============================
FAILED tests/test_discovergy.py::test_token_auth_expired - respx.models.AllMo...
FAILED tests/test_discovergy.py::test_meters - respx.models.AllMockedAssertio...
FAILED tests/test_discovergy.py::test_meter_last_reading - respx.models.AllMo...
FAILED tests/test_discovergy.py::test_meter_last_reading_empty - respx.models...
FAILED tests/test_discovergy.py::test_meter_devices - respx.models.AllMockedA...
FAILED tests/test_discovergy.py::test_meter_devices_empty - respx.models.AllM...
FAILED tests/test_discovergy.py::test_meter_readings - respx.models.AllMocked...
FAILED tests/test_discovergy.py::test_meter_field_names - respx.models.AllMoc...
FAILED tests/test_discovergy.py::test_meter_statistics - respx.models.AllMock...
FAILED tests/test_token.py::test_fetch_consumer_token - respx.models.AllMocke...
FAILED tests/test_token.py::test_fetch_request_token - pydiscovergy.error.HTT...
FAILED tests/test_token.py::test_authorize_request_token - respx.models.AllMo...
FAILED tests/test_token.py::test_fetch_access_token - pydiscovergy.error.HTTP...
ERROR tests/test_discovergy.py::test_token_auth_expired - AssertionError: RES...
ERROR tests/test_discovergy.py::test_meters - AssertionError: RESPX: some rou...
ERROR tests/test_discovergy.py::test_meter_last_reading - AssertionError: RES...
ERROR tests/test_discovergy.py::test_meter_last_reading_empty - AssertionErro...
ERROR tests/test_discovergy.py::test_meter_devices - AssertionError: RESPX: s...
ERROR tests/test_discovergy.py::test_meter_devices_empty - AssertionError: RE...
ERROR tests/test_discovergy.py::test_meter_readings - AssertionError: RESPX: ...
ERROR tests/test_discovergy.py::test_meter_field_names - AssertionError: RESP...
ERROR tests/test_discovergy.py::test_meter_statistics - AssertionError: RESPX...
ERROR tests/test_token.py::test_fetch_consumer_token - AssertionError: RESPX:...
ERROR tests/test_token.py::test_fetch_request_token - AssertionError: RESPX: ...
ERROR tests/test_token.py::test_authorize_request_token - AssertionError: RES...
ERROR tests/test_token.py::test_fetch_access_token - AssertionError: RESPX: s...
============ 13 failed, 3 passed, 1 deselected, 13 errors in 1.12s =============
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest --no-cov -k 
"not test__get"
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 
returned exit code 13
make: *** [debian/rules:5: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202503/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:pydiscovergy, so that this is still
visible in the BTS web page for this package.

Thanks.

Reply via email to