Skip to content

Commit

Permalink
Updating the test case
Browse files Browse the repository at this point in the history
  • Loading branch information
rhnfzl committed Nov 13, 2024
1 parent fe7bd88 commit 5c4722f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_sct.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ class TextCleanerTest(unittest.TestCase):
def setUpClass(cls):
if os.getenv('GITHUB_ACTIONS'):
cls.ner = None
# Initialize empty processing classes for GitHub Actions
cls.ProcessContacts = None
cls.ProcessDateTime = None
cls.ProcessSpecialSymbols = None
cls.NormaliseText = None
cls.ProcessStopwords = None
cls.fake = None
return

try:
Expand Down Expand Up @@ -102,6 +109,9 @@ def setUpClass(cls):
def setUp(self):
"""Set up test fixtures before each test method."""
config.CHECK_NER_PROCESS = True
if os.getenv('GITHUB_ACTIONS'):
self.skipTest("Skipping test in GitHub Actions")

# Copy class-level attributes to instance level
self.ProcessContacts = self.__class__.ProcessContacts
self.ProcessDateTime = self.__class__.ProcessDateTime
Expand Down

0 comments on commit 5c4722f

Please sign in to comment.