Skip to content

Commit

Permalink
make sure format_string works with no formats
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowers committed Feb 19, 2024
1 parent 957febe commit 9199070
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class MyFormats:
mismatched_rows = ["light_yellow"]
matched_rows = ["cyan", "bold"]
mismatched_cells = ["purple", "blink"]
mismatched_cells = ["purple"]
matched_cells = ["blue"]

@pytest.fixture()
Expand Down
4 changes: 4 additions & 0 deletions tests/test_terminal_str_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@

def test_it_can_make_a_blue_string():
print(format_string("hi", ["bold", "blink"]))


def test_it_works_with_no_formats():
print(format_string("hi", []))

0 comments on commit 9199070

Please sign in to comment.