ingore duplicate code in tests

This commit is contained in:
Wing Lian
2023-06-15 02:03:53 -04:00
parent 7925ddce86
commit baed440fa1

View File

@@ -61,6 +61,7 @@ class TestPromptTokenizationStrategies(unittest.TestCase):
tests the interface between the user and assistant parts tests the interface between the user and assistant parts
""" """
prompter = NoSystemPrompter() prompter = NoSystemPrompter()
# pylint: disable=duplicate-code
strat = AlpacaPromptTokenizingStrategy( strat = AlpacaPromptTokenizingStrategy(
prompter, prompter,
self.tokenizer, self.tokenizer,
@@ -80,6 +81,7 @@ class TestPromptTokenizationStrategies(unittest.TestCase):
""" """
tests the interface between the user and assistant parts tests the interface between the user and assistant parts
""" """
# pylint: disable=duplicate-code
prompter = AlpacaPrompter() prompter = AlpacaPrompter()
strat = AlpacaPromptTokenizingStrategy( strat = AlpacaPromptTokenizingStrategy(
prompter, prompter,