.......F [100%] =================================== FAILURES =================================== ________________________ test_inventory_excludes_locks _________________________ tmp_path = PosixPath('/tmp/pytest-of-cube/pytest-7752/test_inventory_excludes_locks0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x759d6fe906b0> def test_inventory_excludes_locks(tmp_path,monkeypatch): > p=tmp_path/"p";(p/"customers").mkdir(parents=True);(p/"customers/registry.json").write_text("{}");(p/"data/customers/c").mkdir(parents=True);(p/"data/customers/c/x.json").write_text("{}");(p/"data/customers/c/x.lock").write_text("");(p/"config.yaml").write_text("x: 1");monkeypatch.setattr(rc,"PROFILE",p);monkeypatch.setattr(rc,"CUSTOMER","c");monkeypatch.setattr(rc,"RECEIPT",p/"data/r.json");x=rc.inventory();assert "customers/registry.json" in x and "data/customers/c/x.json" in x and all(not k.endswith(".lock") for k in x) ^^^^^^^^^^^^^^ .omo/evidence/task26/task26-telegram-poll-recovery-st_01a00d2c/test_recovery_controller.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .omo/evidence/task26/task26-telegram-poll-recovery-st_01a00d2c/recovery_controller.py:130: in inventory files.discard(RECEIPT);return {str(p.relative_to(PROFILE)):{"sha256":fsha(p),"bytes":p.stat().st_size} for p in sorted(files)} ^^^^^^^ .omo/evidence/task26/task26-telegram-poll-recovery-st_01a00d2c/recovery_controller.py:28: in fsha def fsha(p:Path)->str:return sha(p.read_bytes()) ^^^^^^^^^^^^^^ ../../../miniconda3/lib/python3.12/pathlib.py:1019: in read_bytes with self.open(mode='rb') as f: ^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = PosixPath('/tmp/pytest-of-cube/pytest-7752/test_inventory_excludes_locks0/p/data/customer-activation-audit.jsonl') mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None def open(self, mode='r', buffering=-1, encoding=None, errors=None, newline=None): """ Open the file pointed to by this path and return a file object, as the built-in open() function does. """ if "b" not in mode: encoding = io.text_encoding(encoding) > return io.open(self, mode, buffering, encoding, errors, newline) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-cube/pytest-7752/test_inventory_excludes_locks0/p/data/customer-activation-audit.jsonl' ../../../miniconda3/lib/python3.12/pathlib.py:1013: FileNotFoundError =========================== short test summary info ============================ FAILED .omo/evidence/task26/task26-telegram-poll-recovery-st_01a00d2c/test_recovery_controller.py::test_inventory_excludes_locks 1 failed, 7 passed in 0.05s