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

Investigate MacOS/Windows UT Failures #123

Open
carlkidcrypto opened this issue Jan 8, 2025 · 0 comments
Open

Investigate MacOS/Windows UT Failures #123

carlkidcrypto opened this issue Jan 8, 2025 · 0 comments

Comments

@carlkidcrypto
Copy link
Owner

The following UT fails on MacOS/Windows 3.9/3.10.

Run carlkidcrypto/[email protected]
About to run command cd /Users/runner/work/purpleair_api/purpleair_api/tests ; coverage run -m unittest && coverage json -o coverage_macos_macos-latest_3.9.json ;
/bin/bash --noprofile --norc -eo pipefail /tmp/carlkidcrypto/os-specific-runner/8951367e-83f0-443d-a[16](https://github.com/carlkidcrypto/purpleair_api/actions/runs/12678710820/job/35336863334#step:5:17)5-80c144a9e52e
.................................E...........
======================================================================
ERROR: test_request_members_data (test_purpleair_read_api.PurpleAirReadAPITest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/purpleair_api/purpleair_api/tests/test_purpleair_read_api.py", line 262, in test_request_members_data
    self.para.request_members_data(4321, "name")
  File "/Users/runner/work/purpleair_api/purpleair_api/tests/../purpleair_api/PurpleAirReadAPI.py", line 526, in request_members_data
    return send_url_get_request(
  File "/Users/runner/work/purpleair_api/purpleair_api/tests/../purpleair_api/PurpleAirAPIHelpers.py", line 138, in send_url_get_request
    my_request = get(request_url, headers={"X-API-Key": str(api_key_to_use)})
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests_mock/mocker.py", line [18](https://github.com/carlkidcrypto/purpleair_api/actions/runs/12678710820/job/35336863334#step:5:19)5, in _fake_send
    return _original_send(session, request, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests_mock/adapter.py", line 261, in send
    raise exceptions.NoMockAddress(request)
requests_mock.exceptions.NoMockAddress: No mock address: GET https://api.purpleair.com/v1/groups/43[21](https://github.com/carlkidcrypto/purpleair_api/actions/runs/12678710820/job/35336863334#step:5:22)/members?fields=name
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