diff options
| author | Scott Gasch <[email protected]> | 2022-02-03 14:18:37 -0800 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2022-02-03 14:18:37 -0800 |
| commit | 713a609bd19d491de03debf8a4a6ddf2540b13dc (patch) | |
| tree | 6593978162d3c11c3a54e44a770aded4abc79704 /tests/string_utils_test.py | |
| parent | eb1c6392095947b3205c4d52cd9b1507e6cd776b (diff) | |
Change settings in flake8 and black.
Diffstat (limited to 'tests/string_utils_test.py')
| -rwxr-xr-x | tests/string_utils_test.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/string_utils_test.py b/tests/string_utils_test.py index cc57036..5184894 100755 --- a/tests/string_utils_test.py +++ b/tests/string_utils_test.py @@ -2,16 +2,14 @@ import unittest -from ansi import fg, bg, reset import bootstrap import string_utils as su - import unittest_utils as uu +from ansi import bg, fg, reset @uu.check_all_methods_for_perf_regressions() class TestStringUtils(unittest.TestCase): - def test_is_none_or_empty(self): self.assertTrue(su.is_none_or_empty(None)) self.assertTrue(su.is_none_or_empty("")) @@ -130,7 +128,7 @@ class TestStringUtils(unittest.TestCase): s = f' {fg("red")} this is a test {bg("white")} this is a test {reset()} ' self.assertEqual( su.strip_escape_sequences(s), - ' this is a test this is a test ' + ' this is a test this is a test ', ) s = ' this is another test ' self.assertEqual(su.strip_escape_sequences(s), s) |
