Summary
miners/clawrtc/test_config.py::TestGetConfigPath::test_default_path assumes Unix path separators by checking that str(path).endswith('.clawrtc/config.json'). On Windows, get_config_path() correctly returns C:\Users\...\.clawrtc\config.json, so the assertion fails even though the returned path is correct.
Reproduction
On Windows from a fresh checkout:
python -m pytest miners\clawrtc\test_config.py -q
Actual result
Before fix:
Failure:
AssertionError: assert False
'C:\\Users\\acer\\.clawrtc\\config.json'.endswith('.clawrtc/config.json')
Expected result
The test should assert the Path structure (.clawrtc parent and config.json file name) instead of hard-coding / as the separator.
Summary
miners/clawrtc/test_config.py::TestGetConfigPath::test_default_pathassumes Unix path separators by checking thatstr(path).endswith('.clawrtc/config.json'). On Windows,get_config_path()correctly returnsC:\Users\...\.clawrtc\config.json, so the assertion fails even though the returned path is correct.Reproduction
On Windows from a fresh checkout:
Actual result
Before fix:
Failure:
Expected result
The test should assert the
Pathstructure (.clawrtcparent andconfig.jsonfile name) instead of hard-coding/as the separator.