import sys
import unittest

sys.path.append("../pythainlp")

loader = unittest.TestLoader()
testSuite = loader.discover("tests")
testRunner = unittest.TextTestRunner(verbosity=1)
testRunner.run(testSuite)

import sys
import unittest
import nltk

sys.path.append("../pythainlp")

nltk.download('omw-1.4')  # load wordnet

loader = unittest.TestLoader()
testSuite = loader.discover("tests")
testRunner = unittest.TextTestRunner(verbosity=1)
testRunner.run(testSuite)

Add load wordnet to tests
Add load wordnet to tests

  import sys
  import unittest
+ import nltk
  
  sys.path.append("../pythainlp")
+ 
+ nltk.download('omw-1.4')  # load wordnet
  
  loader = unittest.TestLoader()
  testSuite = loader.discover("tests")
  testRunner = unittest.TextTestRunner(verbosity=1)
  testRunner.run(testSuite)
  
Add load wordnet to tests
## Code Before:
import sys
import unittest

sys.path.append("../pythainlp")

loader = unittest.TestLoader()
testSuite = loader.discover("tests")
testRunner = unittest.TextTestRunner(verbosity=1)
testRunner.run(testSuite)

## Instruction:
Add load wordnet to tests
## Code After:
import sys
import unittest
import nltk

sys.path.append("../pythainlp")

nltk.download('omw-1.4')  # load wordnet

loader = unittest.TestLoader()
testSuite = loader.discover("tests")
testRunner = unittest.TextTestRunner(verbosity=1)
testRunner.run(testSuite)
