Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow SkipTestCase in python #1817

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions openc3-cosmos-script-runner-api/scripts/running_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def _openc3_script_sleep(sleep_time=None):
from openc3.io.stderr import Stderr
from openc3.top_level import kill_thread
from openc3.script.exceptions import StopScript, SkipScript
from openc3.tools.test_runner.test import SkipTestCase
from openc3.script.suite import Group
from script_instrumentor import ScriptInstrumentor
import openc3.utilities.target_file_importer
Expand Down Expand Up @@ -537,6 +538,7 @@ def exception_instrumentation(self, filename, line_number):
if (
exc_type == StopScript
or exc_type == SkipScript
or exc_type == SkipTestCase # DEPRECATED but still valid
or not self.use_instrumentation
):
raise exc_value
Expand Down
2 changes: 0 additions & 2 deletions openc3/python/openc3/script/suite_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
from openc3.script.exceptions import StopScript
import inspect


class UnassignedSuite(Suite):
"""Placeholder for all Groups discovered without assigned Suites"""

pass


Expand Down
2 changes: 0 additions & 2 deletions openc3/python/test/models/test_microservice_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@

import inspect
import unittest
import tempfile
from unittest.mock import *
from test.test_helper import *
from openc3.models.microservice_model import MicroserviceModel
from openc3.config.config_parser import ConfigParser


class TestMicroserviceModel(unittest.TestCase):
Expand Down
Loading