Buckets:

download
raw
452 Bytes
from pathlib import Path
import pytest
from logfire._internal import stack_info
def test_non_user_path_requires_directory_boundary(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
library = tmp_path / 'library'
monkeypatch.setattr(stack_info, 'NON_USER_CODE_PREFIXES', (str(library),))
assert stack_info.is_non_user_path(library / 'module.py')
assert not stack_info.is_non_user_path(tmp_path / 'library-extra' / 'app.py')

Xet Storage Details

Size:
452 Bytes
·
Xet hash:
dd2328fb50625c0b5656fdb32bb45ed3ded6933f486680d129b8506a3f1ef38a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.