Skip to content

Commit 9199070

Browse files
committed
make sure format_string works with no formats
1 parent 957febe commit 9199070

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class MyFormats:
66
mismatched_rows = ["light_yellow"]
77
matched_rows = ["cyan", "bold"]
8-
mismatched_cells = ["purple", "blink"]
8+
mismatched_cells = ["purple"]
99
matched_cells = ["blue"]
1010

1111
@pytest.fixture()

tests/test_terminal_str_formatter.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55

66
def test_it_can_make_a_blue_string():
77
print(format_string("hi", ["bold", "blink"]))
8+
9+
10+
def test_it_works_with_no_formats():
11+
print(format_string("hi", []))

0 commit comments

Comments
 (0)