Skip to content

Commit

Permalink
Merge pull request #448 from yungyuc/refactor/rename-test-pilot
Browse files Browse the repository at this point in the history
Rename test_view.py to test_pilot.py
  • Loading branch information
yungyuc authored Dec 26, 2024
2 parents 278a9a3 + 796426d commit 35650f4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_view.py → tests/test_pilot.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
except ImportError:
# Bypass PUI import error if modmesh is built without Qt PUI may not be
# installed in this case.
# If modmesh is built with Qt, the ViewTC will check if PUI is working
# If modmesh is built with Qt, the PilotTC will check if PUI is working
# or not.
pass

GITHUB_ACTIONS = os.getenv('GITHUB_ACTIONS', False)


@unittest.skipUnless(modmesh.HAS_PILOT, "Qt pilot is not built")
class ViewTC(unittest.TestCase):
class PilotTC(unittest.TestCase):

def test_import(self):
self.assertTrue(hasattr(modmesh.pilot, "mgr"))
Expand All @@ -63,7 +63,7 @@ def test_pycon(self):
self.assertFalse(pilot.mgr.pycon.python_redirect)


class ViewCameraTB:
class PilotCameraTB:
camera_type = None

@classmethod
Expand Down Expand Up @@ -105,7 +105,7 @@ def normalize(self, vec):


@unittest.skipIf(GITHUB_ACTIONS, "GUI is not available in GitHub Actions")
class ViewCommonCameraTC(ViewCameraTB, unittest.TestCase):
class PilotCommonCameraTC(PilotCameraTB, unittest.TestCase):
def test_value_get_set(self):
c = self.camera

Expand Down Expand Up @@ -196,7 +196,7 @@ def test_translation(self):


@unittest.skipIf(GITHUB_ACTIONS, "GUI is not available in GitHub Actions")
class ViewFPSCameraTC(ViewCameraTB, unittest.TestCase):
class PilotFPSCameraTC(PilotCameraTB, unittest.TestCase):
camera_type = "fps"

def setUp(self):
Expand Down Expand Up @@ -267,7 +267,7 @@ def test_rotation(self):


@unittest.skipIf(GITHUB_ACTIONS, "GUI is not available in GitHub Actions")
class ViewOrbitCameraTC(ViewCameraTB, unittest.TestCase):
class PilotOrbitCameraTC(PilotCameraTB, unittest.TestCase):
camera_type = "orbit"

def setUp(self):
Expand Down

0 comments on commit 35650f4

Please sign in to comment.