File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change
1
+ import os
2
+
1
3
import pytest
2
4
3
5
import pathins .stringbuilder
@@ -132,7 +134,7 @@ def mock_isatty():
132
134
monkeypatch .setattr (pathins .stringbuilder , "IS_A_TTY" , mock_isatty )
133
135
134
136
res = pathins .stringbuilder .report_header ("TEST" )
135
- assert res == "-----\n \ 033 [1;96mTEST\033 [0m\n -----"
137
+ assert res == f "-----{ os . linesep } \ 033 [1;96mTEST\033 [0m{ os . linesep } -----"
136
138
137
139
138
140
def test_report_header_nocolor (monkeypatch ):
@@ -144,7 +146,7 @@ def mock_isatty():
144
146
monkeypatch .setattr (pathins .stringbuilder , "IS_A_TTY" , mock_isatty )
145
147
146
148
res = pathins .stringbuilder .report_header ("TEST" , nocolor = True )
147
- assert res == "-----\n TEST \n -----"
149
+ assert res == f "-----{ os . linesep } TEST { os . linesep } -----"
148
150
149
151
150
152
# def test_overlap_result_pass_default(monkeypatch):
You can’t perform that action at this time.
0 commit comments