Skip to content

Commit

Permalink
Added skip test ig gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Feb 12, 2024
1 parent 8cd28ba commit 5de8382
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
from .test_constants import TEST_INPUT_DIR, TEST_OUTPUT_DIR


@unittest.skipIf(os.getenv("GITHUB_ACTIONS") == "true", "Skipping tests in GitHub Actions")
class CodeTesterTests(unittest.TestCase):
"""Tests for the CodeTester class."""

@unittest.skipIf(os.getenv("GITHUB_ACTIONS") == "true", "Skipping tests in GitHub Actions")
def setUp(self):
"""Create a sample runnable chain for testing."""
self.llm = ChatOpenAI(openai_api_key=os.environ.get("OPENAI_API_KEY"))
Expand All @@ -26,6 +26,7 @@ def setUp(self):
self.filename = TEST_INPUT_DIR / "math.py"
self.output_filename = TEST_OUTPUT_DIR / "test_math.py"

@unittest.skipIf(os.getenv("GITHUB_ACTIONS") == "true", "Skipping tests in GitHub Actions")
def tearDown(self):
"""Clean up the created test files."""
test_files = Path(TEST_OUTPUT_DIR).glob("test_*")
Expand Down

0 comments on commit 5de8382

Please sign in to comment.