Skip to content

Feature/pricing modules - #636

Open
ngardiner wants to merge 6 commits into
mainfrom
feature/pricing-modules
Open

Feature/pricing modules#636
ngardiner wants to merge 6 commits into
mainfrom
feature/pricing-modules

test+docs: Add unit tests and documentation for Pricing modules

1701ced
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
GitHub Actions / Test Results failed Apr 13, 2026 in 0s

36 errors, 58 fail, 2 skipped, 272 pass in 4m 37s

    8 files      8 suites   4m 37s ⏱️
  368 tests   272 ✅ 2 💤  58 ❌  36 🔥
1 472 runs  1 088 ✅ 8 💤 232 ❌ 144 🔥

Results for commit 1701ced.

Annotations

Check failure on line 0 in tests.integration.test_api_endpoints.TestAPIEndpoints

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_api_listener_is_running (tests.integration.test_api_endpoints.TestAPIEndpoints)

test-results-3.10/junit-integration.xml [took 1m 3s]
test-results-3.11/junit-integration.xml [took 1m 3s]
test-results-3.8/junit-integration.xml [took 1m 3s]
test-results-3.9/junit-integration.xml [took 1m 3s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check failure on line 0 in tests.integration.test_api_endpoints.TestAPIEndpoints

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_get_config (tests.integration.test_api_endpoints.TestAPIEndpoints)

test-results-3.10/junit-integration.xml [took 0s]
test-results-3.11/junit-integration.xml [took 0s]
test-results-3.8/junit-integration.xml [took 0s]
test-results-3.9/junit-integration.xml [took 0s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check failure on line 0 in tests.integration.test_api_endpoints.TestAPIEndpoints

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_get_status (tests.integration.test_api_endpoints.TestAPIEndpoints)

test-results-3.10/junit-integration.xml [took 0s]
test-results-3.11/junit-integration.xml [took 0s]
test-results-3.8/junit-integration.xml [took 0s]
test-results-3.9/junit-integration.xml [took 0s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check failure on line 0 in tests.integration.test_api_endpoints.TestAPIEndpoints

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_get_slave_twcs (tests.integration.test_api_endpoints.TestAPIEndpoints)

test-results-3.10/junit-integration.xml [took 0s]
test-results-3.11/junit-integration.xml [took 0s]
test-results-3.8/junit-integration.xml [took 0s]
test-results-3.9/junit-integration.xml [took 0s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check failure on line 0 in tests.integration.test_api_endpoints.TestChargeControl

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_charge_now_activation (tests.integration.test_api_endpoints.TestChargeControl)

test-results-3.10/junit-integration.xml [took 0s]
test-results-3.11/junit-integration.xml [took 0s]
test-results-3.8/junit-integration.xml [took 0s]
test-results-3.9/junit-integration.xml [took 0s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check failure on line 0 in tests.integration.test_api_endpoints.TestChargeControl

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_charge_now_cancellation (tests.integration.test_api_endpoints.TestChargeControl)

test-results-3.10/junit-integration.xml [took 0s]
test-results-3.11/junit-integration.xml [took 0s]
test-results-3.8/junit-integration.xml [took 0s]
test-results-3.9/junit-integration.xml [took 0s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check failure on line 0 in tests.integration.test_api_endpoints.TestChargeControl

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_charge_now_various_amperage[12] (tests.integration.test_api_endpoints.TestChargeControl)

test-results-3.10/junit-integration.xml [took 0s]
test-results-3.11/junit-integration.xml [took 0s]
test-results-3.8/junit-integration.xml [took 0s]
test-results-3.9/junit-integration.xml [took 0s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check failure on line 0 in tests.integration.test_api_endpoints.TestChargeControl

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_charge_now_various_amperage[16] (tests.integration.test_api_endpoints.TestChargeControl)

test-results-3.10/junit-integration.xml [took 0s]
test-results-3.11/junit-integration.xml [took 0s]
test-results-3.8/junit-integration.xml [took 0s]
test-results-3.9/junit-integration.xml [took 0s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check failure on line 0 in tests.integration.test_api_endpoints.TestChargeControl

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_charge_now_various_amperage[24] (tests.integration.test_api_endpoints.TestChargeControl)

test-results-3.10/junit-integration.xml [took 0s]
test-results-3.11/junit-integration.xml [took 0s]
test-results-3.8/junit-integration.xml [took 0s]
test-results-3.9/junit-integration.xml [took 0s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check failure on line 0 in tests.integration.test_api_endpoints.TestChargeControl

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_charge_now_various_amperage[32] (tests.integration.test_api_endpoints.TestChargeControl)

test-results-3.10/junit-integration.xml [took 0s]
test-results-3.11/junit-integration.xml [took 0s]
test-results-3.8/junit-integration.xml [took 0s]
test-results-3.9/junit-integration.xml [took 0s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check failure on line 0 in tests.integration.test_api_endpoints.TestChargeControl

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_charge_now_various_amperage[40] (tests.integration.test_api_endpoints.TestChargeControl)

test-results-3.10/junit-integration.xml [took 0s]
test-results-3.11/junit-integration.xml [took 0s]
test-results-3.8/junit-integration.xml [took 0s]
test-results-3.9/junit-integration.xml [took 0s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check failure on line 0 in tests.integration.test_api_endpoints.TestPolicyEngine

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_get_policy (tests.integration.test_api_endpoints.TestPolicyEngine)

test-results-3.10/junit-integration.xml [took 0s]
test-results-3.11/junit-integration.xml [took 0s]
test-results-3.8/junit-integration.xml [took 0s]
test-results-3.9/junit-integration.xml [took 0s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check failure on line 0 in tests.integration.test_api_endpoints.TestPolicyEngine

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_get_active_policy_action (tests.integration.test_api_endpoints.TestPolicyEngine)

test-results-3.10/junit-integration.xml [took 0s]
test-results-3.11/junit-integration.xml [took 0s]
test-results-3.8/junit-integration.xml [took 0s]
test-results-3.9/junit-integration.xml [took 0s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check failure on line 0 in tests.integration.test_api_endpoints.TestLocationSettings

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_set_lat_lon (tests.integration.test_api_endpoints.TestLocationSettings)

test-results-3.10/junit-integration.xml [took 0s]
test-results-3.11/junit-integration.xml [took 0s]
test-results-3.8/junit-integration.xml [took 0s]
test-results-3.9/junit-integration.xml [took 0s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check failure on line 0 in tests.integration.test_api_endpoints.TestConsumptionOffsets

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_set_consumption_offset (tests.integration.test_api_endpoints.TestConsumptionOffsets)

test-results-3.10/junit-integration.xml [took 0s]
test-results-3.11/junit-integration.xml [took 0s]
test-results-3.8/junit-integration.xml [took 0s]
test-results-3.9/junit-integration.xml [took 0s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check failure on line 0 in tests.integration.test_api_endpoints.TestStartStopCommands

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_send_start_command (tests.integration.test_api_endpoints.TestStartStopCommands)

test-results-3.10/junit-integration.xml [took 0s]
test-results-3.11/junit-integration.xml [took 0s]
test-results-3.8/junit-integration.xml [took 0s]
test-results-3.9/junit-integration.xml [took 0s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check failure on line 0 in tests.integration.test_api_endpoints.TestStartStopCommands

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_send_stop_command (tests.integration.test_api_endpoints.TestStartStopCommands)

test-results-3.10/junit-integration.xml [took 0s]
test-results-3.11/junit-integration.xml [took 0s]
test-results-3.8/junit-integration.xml [took 0s]
test-results-3.9/junit-integration.xml [took 0s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check failure on line 0 in tests.integration.test_api_endpoints.TestStartStopCommands

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_start_stop_sequence (tests.integration.test_api_endpoints.TestStartStopCommands)

test-results-3.10/junit-integration.xml [took 0s]
test-results-3.11/junit-integration.xml [took 0s]
test-results-3.8/junit-integration.xml [took 0s]
test-results-3.9/junit-integration.xml [took 0s]
Raw output
failed on setup with "Failed: TWCManager did not become ready within 60 seconds"
tests/conftest.py:87: in wait_for_twcmanager
    pytest.fail(f"TWCManager did not become ready within {max_wait} seconds")
E   Failed: TWCManager did not become ready within 60 seconds

Check warning on line 0 in tests.unit.test_dummy.TestDummyInitialization

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs failed: test_dummy_initialization (tests.unit.test_dummy.TestDummyInitialization)

test-results-unit-3.10/junit-unit.xml [took 0s]
test-results-unit-3.11/junit-unit.xml [took 0s]
test-results-unit-3.8/junit-unit.xml [took 0s]
test-results-unit-3.9/junit-unit.xml [took 0s]
Raw output
AttributeError: module 'logging' has no attribute 'INFO4'
lib/TWCManager/Interface/Dummy.py:84: in _load_scenario
    scenarios = json.load(f)
                ^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/__init__.py:293: in load
    return loads(fp.read(),
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/__init__.py:346: in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/decoder.py:337: in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/decoder.py:355: in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
E   json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:
tests/unit/test_dummy.py:34: in test_dummy_initialization
    dummy = Dummy(mock_master)
            ^^^^^^^^^^^^^^^^^^
lib/TWCManager/Interface/Dummy.py:57: in __init__
    self._load_scenario()
lib/TWCManager/Interface/Dummy.py:97: in _load_scenario
    logger.log(logging.INFO4, f"Error loading scenario: {e}")
               ^^^^^^^^^^^^^
E   AttributeError: module 'logging' has no attribute 'INFO4'

Check warning on line 0 in tests.unit.test_dummy.TestDummyInitialization

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs failed: test_dummy_custom_twc_id (tests.unit.test_dummy.TestDummyInitialization)

test-results-unit-3.10/junit-unit.xml [took 0s]
test-results-unit-3.11/junit-unit.xml [took 0s]
test-results-unit-3.8/junit-unit.xml [took 0s]
test-results-unit-3.9/junit-unit.xml [took 0s]
Raw output
AttributeError: module 'logging' has no attribute 'INFO4'
lib/TWCManager/Interface/Dummy.py:84: in _load_scenario
    scenarios = json.load(f)
                ^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/__init__.py:293: in load
    return loads(fp.read(),
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/__init__.py:346: in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/decoder.py:337: in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/decoder.py:355: in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
E   json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:
tests/unit/test_dummy.py:70: in test_dummy_custom_twc_id
    dummy = Dummy(master)
            ^^^^^^^^^^^^^
lib/TWCManager/Interface/Dummy.py:57: in __init__
    self._load_scenario()
lib/TWCManager/Interface/Dummy.py:97: in _load_scenario
    logger.log(logging.INFO4, f"Error loading scenario: {e}")
               ^^^^^^^^^^^^^
E   AttributeError: module 'logging' has no attribute 'INFO4'

Check failure on line 0 in tests.unit.test_dummy.TestDummySimpleMode

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_dummy_buffer_operations (tests.unit.test_dummy.TestDummySimpleMode)

test-results-unit-3.10/junit-unit.xml [took 0s]
test-results-unit-3.11/junit-unit.xml [took 0s]
test-results-unit-3.8/junit-unit.xml [took 0s]
test-results-unit-3.9/junit-unit.xml [took 0s]
Raw output
failed on setup with "AttributeError: module 'logging' has no attribute 'INFO4'"
lib/TWCManager/Interface/Dummy.py:84: in _load_scenario
    scenarios = json.load(f)
                ^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/__init__.py:293: in load
    return loads(fp.read(),
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/__init__.py:346: in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/decoder.py:337: in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/decoder.py:355: in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
E   json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:
tests/unit/test_dummy.py:98: in dummy
    return Dummy(mock_master)
           ^^^^^^^^^^^^^^^^^^
lib/TWCManager/Interface/Dummy.py:57: in __init__
    self._load_scenario()
lib/TWCManager/Interface/Dummy.py:97: in _load_scenario
    logger.log(logging.INFO4, f"Error loading scenario: {e}")
               ^^^^^^^^^^^^^
E   AttributeError: module 'logging' has no attribute 'INFO4'

Check failure on line 0 in tests.unit.test_dummy.TestDummySimpleMode

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_dummy_close (tests.unit.test_dummy.TestDummySimpleMode)

test-results-unit-3.10/junit-unit.xml [took 0s]
test-results-unit-3.11/junit-unit.xml [took 0s]
test-results-unit-3.8/junit-unit.xml [took 0s]
test-results-unit-3.9/junit-unit.xml [took 0s]
Raw output
failed on setup with "AttributeError: module 'logging' has no attribute 'INFO4'"
lib/TWCManager/Interface/Dummy.py:84: in _load_scenario
    scenarios = json.load(f)
                ^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/__init__.py:293: in load
    return loads(fp.read(),
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/__init__.py:346: in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/decoder.py:337: in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/decoder.py:355: in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
E   json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:
tests/unit/test_dummy.py:98: in dummy
    return Dummy(mock_master)
           ^^^^^^^^^^^^^^^^^^
lib/TWCManager/Interface/Dummy.py:57: in __init__
    self._load_scenario()
lib/TWCManager/Interface/Dummy.py:97: in _load_scenario
    logger.log(logging.INFO4, f"Error loading scenario: {e}")
               ^^^^^^^^^^^^^
E   AttributeError: module 'logging' has no attribute 'INFO4'

Check failure on line 0 in tests.unit.test_dummy.TestDummySimpleMode

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_dummy_send_returns_zero (tests.unit.test_dummy.TestDummySimpleMode)

test-results-unit-3.10/junit-unit.xml [took 0s]
test-results-unit-3.11/junit-unit.xml [took 0s]
test-results-unit-3.8/junit-unit.xml [took 0s]
test-results-unit-3.9/junit-unit.xml [took 0s]
Raw output
failed on setup with "AttributeError: module 'logging' has no attribute 'INFO4'"
lib/TWCManager/Interface/Dummy.py:84: in _load_scenario
    scenarios = json.load(f)
                ^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/__init__.py:293: in load
    return loads(fp.read(),
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/__init__.py:346: in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/decoder.py:337: in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/decoder.py:355: in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
E   json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:
tests/unit/test_dummy.py:98: in dummy
    return Dummy(mock_master)
           ^^^^^^^^^^^^^^^^^^
lib/TWCManager/Interface/Dummy.py:57: in __init__
    self._load_scenario()
lib/TWCManager/Interface/Dummy.py:97: in _load_scenario
    logger.log(logging.INFO4, f"Error loading scenario: {e}")
               ^^^^^^^^^^^^^
E   AttributeError: module 'logging' has no attribute 'INFO4'

Check failure on line 0 in tests.unit.test_dummy.TestDummySimpleMode

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_dummy_linkready_response (tests.unit.test_dummy.TestDummySimpleMode)

test-results-unit-3.10/junit-unit.xml [took 0s]
test-results-unit-3.11/junit-unit.xml [took 0s]
test-results-unit-3.8/junit-unit.xml [took 0s]
test-results-unit-3.9/junit-unit.xml [took 0s]
Raw output
failed on setup with "AttributeError: module 'logging' has no attribute 'INFO4'"
lib/TWCManager/Interface/Dummy.py:84: in _load_scenario
    scenarios = json.load(f)
                ^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/__init__.py:293: in load
    return loads(fp.read(),
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/__init__.py:346: in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/decoder.py:337: in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/decoder.py:355: in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
E   json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:
tests/unit/test_dummy.py:98: in dummy
    return Dummy(mock_master)
           ^^^^^^^^^^^^^^^^^^
lib/TWCManager/Interface/Dummy.py:57: in __init__
    self._load_scenario()
lib/TWCManager/Interface/Dummy.py:97: in _load_scenario
    logger.log(logging.INFO4, f"Error loading scenario: {e}")
               ^^^^^^^^^^^^^
E   AttributeError: module 'logging' has no attribute 'INFO4'

Check failure on line 0 in tests.unit.test_dummy.TestDummySimpleMode

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 4 runs with error: test_dummy_heartbeat_response (tests.unit.test_dummy.TestDummySimpleMode)

test-results-unit-3.10/junit-unit.xml [took 0s]
test-results-unit-3.11/junit-unit.xml [took 0s]
test-results-unit-3.8/junit-unit.xml [took 0s]
test-results-unit-3.9/junit-unit.xml [took 0s]
Raw output
failed on setup with "AttributeError: module 'logging' has no attribute 'INFO4'"
lib/TWCManager/Interface/Dummy.py:84: in _load_scenario
    scenarios = json.load(f)
                ^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/__init__.py:293: in load
    return loads(fp.read(),
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/__init__.py:346: in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/decoder.py:337: in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/json/decoder.py:355: in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
E   json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:
tests/unit/test_dummy.py:98: in dummy
    return Dummy(mock_master)
           ^^^^^^^^^^^^^^^^^^
lib/TWCManager/Interface/Dummy.py:57: in __init__
    self._load_scenario()
lib/TWCManager/Interface/Dummy.py:97: in _load_scenario
    logger.log(logging.INFO4, f"Error loading scenario: {e}")
               ^^^^^^^^^^^^^
E   AttributeError: module 'logging' has no attribute 'INFO4'