Skip to content

Commit

Permalink
Merge pull request #1817 from OpenC3/py-skip
Browse files Browse the repository at this point in the history
Allow SkipTestCase in python
  • Loading branch information
ryanmelt authored Jan 9, 2025
2 parents 3ea7f59 + 9f086d6 commit a6a9953
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
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

0 comments on commit a6a9953

Please sign in to comment.