File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 1919import unittest
2020from importlib import import_module # type: ignore
2121
22+ import git
23+
2224from robot_descriptions ._descriptions import DESCRIPTIONS
2325
2426
2527class TestDescriptions (unittest .TestCase ):
26-
27- """
28- Test fixture for all robot descriptions.
29- """
28+ """Test fixture for all robot descriptions."""
3029
3130 def test_all_descriptions (self ):
32- """
33- Check all robot-description submodules.
34- """
31+ """Check all robot-description submodules."""
3532 for name , desc in DESCRIPTIONS .items ():
3633 description = import_module (f"robot_descriptions.{ name } " )
3734 self .assertTrue (
@@ -58,3 +55,8 @@ def test_all_descriptions(self):
5855 f"URDF path { description .URDF_PATH } does not exist "
5956 f"in { description } " ,
6057 )
58+
59+ def test_invalid_description_commit (self ):
60+ os .environ ["ROBOT_DESCRIPTION_COMMIT" ] = "foobar"
61+ with self .assertRaises (git .exc .GitCommandError ):
62+ import_module ("robot_descriptions.sigmaban_description" )
You can’t perform that action at this time.
0 commit comments