| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -157,6 +157,7 @@ class ColorMapping: | |||
| 157 | 157 | "number": "\x1b[94m", | |
| 158 | 158 | "str": "\x1b[33m", | |
| 159 | 159 | "print": "\x1b[96m", | |
| 160 | + "endline": "\x1b[90m\x1b[39;49;00m", | ||
| 160 | 161 | } | |
| 161 | 162 | RE_COLORS = {k: re.escape(v) for k, v in COLORS.items()} | |
| 162 | 163 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -254,7 +254,7 @@ def test_combining(self) -> None: | |||
| 254 | 254 | pytest.param( | |
| 255 | 255 | True, | |
| 256 | 256 | True, | |
| 257 | - "{kw}assert{hl-reset} {number}0{hl-reset}\n", | ||
| 257 | + "{kw}assert{hl-reset} {number}0{hl-reset}{endline}\n", | ||
| 258 | 258 | id="with markup and code_highlight", | |
| 259 | 259 | ), | |
| 260 | 260 | pytest.param( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1265,14 +1265,14 @@ def test_this(): | |||
| 1265 | 1265 | "=*= FAILURES =*=", | |
| 1266 | 1266 | "{red}{bold}_*_ test_this _*_{reset}", | |
| 1267 | 1267 | "", | |
| 1268 | - " {kw}def{hl-reset} {function}test_this{hl-reset}():", | ||
| 1269 | - "> fail()", | ||
| 1268 | + " {kw}def{hl-reset} {function}test_this{hl-reset}():{endline}", | ||
| 1269 | + "> fail(){endline}", | ||
| 1270 | 1270 | "", | |
| 1271 | 1271 | "{bold}{red}test_color_yes.py{reset}:5: ", | |
| 1272 | 1272 | "_ _ * _ _*", | |
| 1273 | 1273 | "", | |
| 1274 | - " {kw}def{hl-reset} {function}fail{hl-reset}():", | ||
| 1275 | - "> {kw}assert{hl-reset} {number}0{hl-reset}", | ||
| 1274 | + " {kw}def{hl-reset} {function}fail{hl-reset}():{endline}", | ||
| 1275 | + "> {kw}assert{hl-reset} {number}0{hl-reset}{endline}", | ||
| 1276 | 1276 | "{bold}{red}E assert 0{reset}", | |
| 1277 | 1277 | "", | |
| 1278 | 1278 | "{bold}{red}test_color_yes.py{reset}:2: AssertionError", | |
@@ -1292,9 +1292,9 @@ def test_this(): | |||
| 1292 | 1292 | "=*= FAILURES =*=", | |
| 1293 | 1293 | "{red}{bold}_*_ test_this _*_{reset}", | |
| 1294 | 1294 | "{bold}{red}test_color_yes.py{reset}:5: in test_this", | |
| 1295 | - " fail()", | ||
| 1295 | + " fail(){endline}", | ||
| 1296 | 1296 | "{bold}{red}test_color_yes.py{reset}:2: in fail", | |
| 1297 | - " {kw}assert{hl-reset} {number}0{hl-reset}", | ||
| 1297 | + " {kw}assert{hl-reset} {number}0{hl-reset}{endline}", | ||
| 1298 | 1298 | "{bold}{red}E assert 0{reset}", | |
| 1299 | 1299 | "{red}=*= {red}{bold}1 failed{reset}{red} in *s{reset}{red} =*={reset}", | |
| 1300 | 1300 | ] | |
@@ -2472,8 +2472,8 @@ def test_foo(): | |||
| 2472 | 2472 | result.stdout.fnmatch_lines( | |
| 2473 | 2473 | color_mapping.format_for_fnmatch( | |
| 2474 | 2474 | [ | |
| 2475 | - " {kw}def{hl-reset} {function}test_foo{hl-reset}():", | ||
| 2476 | - "> {kw}assert{hl-reset} {number}1{hl-reset} == {number}10{hl-reset}", | ||
| 2475 | + " {kw}def{hl-reset} {function}test_foo{hl-reset}():{endline}", | ||
| 2476 | + "> {kw}assert{hl-reset} {number}1{hl-reset} == {number}10{hl-reset}{endline}", | ||
| 2477 | 2477 | "{bold}{red}E assert 1 == 10{reset}", | |
| 2478 | 2478 | ] | |
| 2479 | 2479 | ) | |
@@ -2494,9 +2494,9 @@ def test_foo(): | |||
| 2494 | 2494 | result.stdout.fnmatch_lines( | |
| 2495 | 2495 | color_mapping.format_for_fnmatch( | |
| 2496 | 2496 | [ | |
| 2497 | - " {kw}def{hl-reset} {function}test_foo{hl-reset}():", | ||
| 2497 | + " {kw}def{hl-reset} {function}test_foo{hl-reset}():{endline}", | ||
| 2498 | 2498 | " {print}print{hl-reset}({str}'''{hl-reset}{str}{hl-reset}", | |
| 2499 | - "> {str} {hl-reset}{str}'''{hl-reset}); {kw}assert{hl-reset} {number}0{hl-reset}", | ||
| 2499 | + "> {str} {hl-reset}{str}'''{hl-reset}); {kw}assert{hl-reset} {number}0{hl-reset}{endline}", | ||
| 2500 | 2500 | "{bold}{red}E assert 0{reset}", | |
| 2501 | 2501 | ] | |
| 2502 | 2502 | ) | |
@@ -2517,8 +2517,8 @@ def test_foo(): | |||
| 2517 | 2517 | result.stdout.fnmatch_lines( | |
| 2518 | 2518 | color_mapping.format_for_fnmatch( | |
| 2519 | 2519 | [ | |
| 2520 | - " {kw}def{hl-reset} {function}test_foo{hl-reset}():", | ||
| 2521 | - "> {kw}assert{hl-reset} {number}1{hl-reset} == {number}10{hl-reset}", | ||
| 2520 | + " {kw}def{hl-reset} {function}test_foo{hl-reset}():{endline}", | ||
| 2521 | + "> {kw}assert{hl-reset} {number}1{hl-reset} == {number}10{hl-reset}{endline}", | ||
| 2522 | 2522 | "{bold}{red}E assert 1 == 10{reset}", | |
| 2523 | 2523 | ] | |
| 2524 | 2524 | ) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments