We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8cc441 commit 6b54d74Copy full SHA for 6b54d74
tests/conftest.py
@@ -1,5 +1,7 @@
1
"""PyTest Configurations."""
2
3
+from pathlib import Path
4
+
5
import pytest
6
7
from llm.utils import create_vocab
@@ -9,3 +11,12 @@
9
11
def vocab() -> dict:
10
12
"""Vocablary dict."""
13
return create_vocab()
14
15
16
+@pytest.fixture()
17
+def vocab_text() -> str:
18
+ """Vocablary raw text."""
19
+ file_path = Path.cwd() / "src/llm/resources/the-verdict.txt"
20
+ with open(str(file_path), encoding="utf-8") as f:
21
+ text = f.read()
22
+ return text
0 commit comments