aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting
diff options
context:
space:
mode:
authorVincent Danno <vincent.danno@orange.com>2021-05-20 14:36:33 +0200
committerVincent Danno <vincent.danno@orange.com>2021-05-20 20:48:32 +0200
commitb66af994ab21266fcebf8dd99d52b88826d1b304 (patch)
tree3f079281be5716affe6b9b78c1f8021189178c74 /xtesting
parentd340a8e8f99fef80c5fa3a45c4e1b06e5b0aeb39 (diff)
Delete dead code
The piece of code became unused following change https://gerrit.opnfv.org/gerrit/c/functest/+/39443 Signed-off-by: Vincent Danno <vincent.danno@orange.com> Change-Id: I0bf80790c05cef217be574ad196d8c4e8dfb4c2d
Diffstat (limited to 'xtesting')
-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])