Skip to content

Commit 78e9d4c

Browse files
committed
test: add unicode characters to all generated files
1 parent 7f30f80 commit 78e9d4c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ repos:
7070
stages:
7171
- commit-msg
7272
repo: https://github.com/commitizen-tools/commitizen
73-
rev: 3.12.0
73+
rev: v3.12.0
7474

7575

7676
- repo: https://github.com/PyCQA/docformatter

tests/conftest.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def run(self, *flags):
6767
prefix = """\"\"\"
6868
PYTEST_DONT_REWRITE
6969
\"\"\"
70+
# äöß 🐍
7071
from inline_snapshot import snapshot
7172
from inline_snapshot import external
7273
from inline_snapshot import outsource
@@ -172,13 +173,17 @@ def project(pytester):
172173
class Project:
173174
def setup(self, source: str):
174175
self.header = """\
176+
# äöß 🐍
175177
from inline_snapshot import snapshot
176178
from inline_snapshot import outsource
177179
"""
178180
if "# no imports" in source:
179-
self.header = ""
181+
self.header = """\
182+
# äöß 🐍
183+
"""
180184
else:
181185
self.header = """\
186+
# äöß 🐍
182187
from inline_snapshot import snapshot
183188
from inline_snapshot import outsource
184189
"""

0 commit comments

Comments
 (0)