Skip to content

Commit

Permalink
some more minor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyAJohnston committed Dec 12, 2024
1 parent 7d4e354 commit 7e10274
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
32 changes: 16 additions & 16 deletions tests/__snapshots__/test_bob.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
[-1., -1., -1.]])
# ---
# name: test_bob.1
array([[ 0.90006304, -1.12934756, -0.55971247],
[ 0.2483076 , 1.55946267, 0.92599988],
[-0.00779395, 0.76339322, -0.77029246],
[-0.56563914, 0.41134506, -0.27488771],
[ 0.44229138, -0.76157147, 1.18775654],
[-0.60502708, 1.16327035, -0.58742392],
[-1.03752935, -0.02677049, -0.66443568],
[-0.79872006, 0.12819853, 0.8434118 ]])
array([[ 0.63007981, 0.07349323, 0.73227137],
[-0.64257538, -0.17809318, -0.57395458],
[-0.20437531, -0.48649511, -0.18577532],
[-0.38053641, 0.08897763, 0.06367166],
[ 0.29634711, 1.40277112, -1.5468626 ],
[ 1.29561853, -0.23725045, -1.23234618],
[-0.17241977, 0.09183837, 1.06755841],
[-1.06163442, 0.2173482 , 0.1178195 ]])
# ---
# name: test_get_position
array([[ 1., 1., 1.],
Expand All @@ -40,12 +40,12 @@
[-1., -1., -1.]])
# ---
# name: test_set_position.1
array([[ 1.56193256, 0.36577407, 1.08248377],
[-1.13181615, 0.67455149, -1.84359038],
[-1.4391489 , -0.20280762, 0.75986677],
[ 0.69463933, 1.41511071, 0.6810624 ],
[ 0.93671936, -0.6297614 , 1.074193 ],
[ 0.97549897, 0.98801565, 0.56115067],
[-0.28145701, -0.72970366, -1.28689027],
[ 0.88530415, 0.72882658, -0.04254681]])
array([[ 1.74945474, -0.286073 , -0.48456514],
[-2.65331864, -0.00828463, -0.31963137],
[-0.53662938, 0.31540266, 0.42105073],
[-1.06560302, -0.88623965, -0.47573349],
[ 0.6896823 , 0.56119215, -1.30554855],
[-1.11947525, 0.73683739, 1.57463408],
[-0.03107509, -0.68344665, 1.09562969],
[-0.30957663, 0.72575223, 1.54907167]])
# ---
2 changes: 2 additions & 0 deletions tests/test_bob.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import numpy as np
import pytest

np.random.seed(11)


def test_get_position(snapshot):
bpy.ops.wm.read_factory_settings()
Expand Down

0 comments on commit 7e10274

Please sign in to comment.