Skip to content
This repository has been archived by the owner on Sep 25, 2022. It is now read-only.

Commit

Permalink
added test for convergence property
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadbashiri committed Jun 12, 2018
1 parent a38bc15 commit 697b008
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,12 @@ def test_cameras_have_correct_distance_in_stereocameragroup():
assert (cam.right.position.x - cam.left.position.x) == cam.distance


def test_projection_set_when_given_as_input_to_StereoCameraGroup():
cam = StereoCameraGroup(projection=OrthoProjection())
def test_attributes_given_as_input_to_StereoCameraGroup():
cam = StereoCameraGroup(projection=OrthoProjection(), convergence=10.)
assert isinstance(cam.left.projection, OrthoProjection)
assert isinstance(cam.left.projection, OrthoProjection)
assert cam.convergence == 10.



def test_projection_instance_is_not_shared_between_children_of_stereocameragroup():
Expand Down

0 comments on commit 697b008

Please sign in to comment.