1
0
mirror of https://github.com/240596448/onec_codetemplate_parser.git synced 2025-11-23 21:34:39 +02:00
This commit is contained in:
Vladimir Nadulich
2025-10-31 15:23:24 +03:00
parent 0755624be3
commit b29b6e7d07
4 changed files with 12 additions and 21 deletions

View File

@@ -1,14 +1,16 @@
import pytest
"""fixtures for tests"""
from pathlib import Path
import pytest
TEST_FILE = 'Documents/1C/1c-text-tempates/Надулич.st'
TEST_FILE = 'Documents/1C/1c-code-templates/Надулич.st'
@pytest.fixture(scope="class")
def test_file_path():
@pytest.fixture(scope="class", name="test_file_path")
def test_data_path():
return Path.home() / TEST_FILE
@pytest.fixture(scope="class")
def test_data(test_file_path):
def test_data(test_file_path):
file_data = test_file_path.read_text(encoding='utf-8-sig')
return file_data