aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xtesting/ci/tier_handler.py18
-rw-r--r--xtesting/tests/unit/ci/test_tier_handler.py5
2 files changed, 0 insertions, 23 deletions
diff --git a/xtesting/ci/tier_handler.py b/xtesting/ci/tier_handler.py
index 6f78f202..86f1374f 100644
--- a/xtesting/ci/tier_handler.py
+++ b/xtesting/ci/tier_handler.py
@@ -16,24 +16,6 @@ import textwrap
import prettytable
-LINE_LENGTH = 72
-
-
-def split_text(text, max_len):
- words = text.split()
- lines = []
- line = ""
- for word in words:
- if len(line) + len(word) < max_len - 1:
- line += word + " "
- else:
- lines.append(line)
- line = word + " "
- if line != "":
- lines.append(line)
- return lines
-
-
class Tier():
def __init__(self, name, description=""):
diff --git a/xtesting/tests/unit/ci/test_tier_handler.py b/xtesting/tests/unit/ci/test_tier_handler.py
index 5ee62c4f..668f33cc 100644
--- a/xtesting/tests/unit/ci/test_tier_handler.py
+++ b/xtesting/tests/unit/ci/test_tier_handler.py
@@ -29,11 +29,6 @@ class TierHandlerTesting(unittest.TestCase):
self.testcase.str = self.testcase.__str__()
self.tier.str = self.tier.__str__()
- def test_split_text(self):
- test_str = 'this is for testing'
- self.assertEqual(tier_handler.split_text(test_str, 10),
- ['this is ', 'for ', 'testing '])
-
def test_add_test(self):
self.tier.add_test(self.test)
self.assertEqual(self.tier.tests_array, [self.test])