Skip to content

Commit

Permalink
Add tests for the povray rendering function.
Browse files Browse the repository at this point in the history
  • Loading branch information
yakutovicha committed Nov 8, 2023
1 parent 32c08e1 commit 360aba7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,17 @@ def test_structure_data_viewer_storage(structure_data_object):
v.file_format.label = fmt
assert v._prepare_payload() == out

# Monkey patch the viewer to avoid the need for a running X server.
# fmt: off
v._viewer._camera_orientation = [
16.619212980943573, 0, 0, 0,
0, 16.619212980943573, 0, 0,
0, 0, 16.619212980943573, 0,
-1.6859999895095825, -1.6859999895095825, -0.6669999957084656, 1,
]
# fmt: on
v._render_structure()


@pytest.mark.usefixtures("aiida_profile_clean")
def test_structure_data_viewer_selection(structure_data_object):
Expand Down

0 comments on commit 360aba7

Please sign in to comment.