From 62bb16ad2ffb0cdc33c5afc418c51e7e76a0f1ed Mon Sep 17 00:00:00 2001 From: Abhishek's Macbook Pro Date: Sun, 12 May 2024 05:12:19 +0530 Subject: [PATCH] updated tests --- tests/src/commands/test_annotate_and_test_runner.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/src/commands/test_annotate_and_test_runner.py b/tests/src/commands/test_annotate_and_test_runner.py index ff5bbad..7fdfa65 100644 --- a/tests/src/commands/test_annotate_and_test_runner.py +++ b/tests/src/commands/test_annotate_and_test_runner.py @@ -18,8 +18,8 @@ def tearDown(self): def test_run(self): sublime.set_timeout_async(self._open_test_fixture_file, 0) try: - # Wait 4 second to make sure test fixture file has opened - yield 4000 + # Wait 6 second to make sure test fixture file has opened + yield 6000 except TimeoutError as e: pass test_file_view = self.test_file_view @@ -43,7 +43,7 @@ def test_run(self): def test_click_on_annotated_html(self): sublime.set_timeout_async(self._open_test_fixture_file, 0) try: - yield 4000 + yield 6000 except TimeoutError as e: pass test_file_view = self.test_file_view @@ -139,7 +139,7 @@ class TestSymbol: output_text = output_panel_view.substr( sublime.Region(0, output_panel_view.size()) ) - self.assertEqual(test_command, output_text) + self.assertTrue("pytest tests/fixtures/test_fixture.py::MyTestCase" in output_text) @patch("os.path.exists") @patch("sublime.platform")