Skip to content

Commit 403dda1

Browse files
committed
Merge remote-tracking branch 'upstream/sdf13' into embeddedsdf_refactoring
2 parents 332c430 + 3fbdaf7 commit 403dda1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+114
-99
lines changed

python/test/gz_test_deps/README

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
This python package encapsulates versioned python packages of gz library
2+
bindings such that the version number only has to be changed in this package.
3+
Here's an example of how to use this in a python test:
4+
5+
```python
6+
from gz_test_deps import math # instead of from gz import math7
7+
from gz_test_deps.math import Vector3d # instead of from gz.math7 import Vector3d
8+
```

python/test/gz_test_deps/__init__.py

Whitespace-only changes.

python/test/gz_test_deps/math.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from gz.math7 import *
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from sdformat13 import *

python/test/pyAirPressure_TEST.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from sdformat13 import AirPressure, Noise
16-
import sdformat13 as sdf
15+
from gz_test_deps.sdformat import AirPressure, Noise
16+
import gz_test_deps.sdformat as sdf
1717
import unittest
1818

1919
class AtmosphereTEST(unittest.TestCase):

python/test/pyAltimeter_TEST.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from sdformat13 import Altimeter, Noise
16-
import sdformat13 as sdf
15+
from gz_test_deps.sdformat import Altimeter, Noise
16+
import gz_test_deps.sdformat as sdf
1717
import unittest
1818

1919

python/test/pyAtmosphere_TEST.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from gz.math7 import Temperature
16-
from sdformat13 import Atmosphere
17-
import sdformat13 as sdf
15+
from gz_test_deps.math import Temperature
16+
from gz_test_deps.sdformat import Atmosphere
17+
import gz_test_deps.sdformat as sdf
1818
import unittest
1919

2020
class AtmosphereTEST(unittest.TestCase):

python/test/pyBox_TEST.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from gz.math7 import Vector3d
16-
from sdformat13 import Box
15+
from gz_test_deps.math import Vector3d
16+
from gz_test_deps.sdformat import Box
1717
import unittest
1818

1919
class BoxTEST(unittest.TestCase):

python/test/pyCamera_TEST.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
# limitations under the License.
1414

1515
import copy
16-
from gz.math7 import Angle, Pose3d, Vector2d
16+
from gz_test_deps.math import Angle, Pose3d, Vector2d
1717
import math
18-
from sdformat13 import Camera
19-
import sdformat13 as sdf
18+
from gz_test_deps.sdformat import Camera
19+
import gz_test_deps.sdformat as sdf
2020
import unittest
2121

2222
class CameraTEST(unittest.TestCase):

python/test/pyCapsule_TEST.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import math
1818

19-
from sdformat13 import Capsule
19+
from gz_test_deps.sdformat import Capsule
2020

2121
import unittest
2222

0 commit comments

Comments
 (0)