Skip to content

Commit

Permalink
minor fix of redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
Darth-Sand committed Dec 5, 2023
1 parent b08793d commit 35a1eb6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/spell_checking/test/test_integration_spellchecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,8 @@ def test_integration_spellchecker(self):
text_extractor.out_dir = "/watched/spell_checking/"
spellchecker = SpellChecker("src/spell_checking/wordList.txt")
spellchecker.out_dir = "/watched/output"
expected_text = []
with open("src/spell_checking/test/expected.txt", 'r', encoding="utf-8") as temp_text:
temp_text = temp_text.read().split()
for word in temp_text:
word = word.lower()
word = word.strip()
expected_text.append(word)
with open("src/spell_checking/test/expected.txt", 'r', encoding="utf-8") as expected_text:
expected_text = expected_text.read().lower().split()
print(f'Expected text: {expected_text}')

#Act
Expand Down

0 comments on commit 35a1eb6

Please sign in to comment.