Skip to content

Commit 67926f0

Browse files
committed
style(splineModel): change file name rust_block.py to spline.py
1 parent d6b0bd9 commit 67926f0

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

bot/view/curve_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
NodePath,
1515
)
1616
import numpy as np
17-
from bot.core.rust_block import SplineModel
17+
from bot.core.spline import SplineModel
1818

1919
MASK_CURVE_PICK = BitMask32.bit(1)
2020
MASK_CP_PICK = BitMask32.bit(2)

bot/viewer/viewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import threading
1313
from typing import Any, Callable, Optional, TYPE_CHECKING
1414

15-
from bot.core.rust_block import SplineModel
15+
from bot.core.spline import SplineModel
1616

1717
if TYPE_CHECKING:
1818
from bot.core.cad import Model

ferrispline

tests/unit/test_curve/test_bezier-curve.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
class TestBezierCurve(unittest.TestCase):
16-
@patch("bot.core.rust_block.ferrispline")
16+
@patch("bot.core.spline.ferrispline")
1717
def test_initialization_and_attributes(self, mock_nurbslib):
1818
"""Tests the initialization of the curve and access to its basic attributes."""
1919
# 1. Data preparation
@@ -94,7 +94,7 @@ def test_default_control_points_degree_zero(self):
9494
self.assertEqual(len(pts), 1)
9595
self.assertEqual(pts[0], coords_a)
9696

97-
@patch("bot.core.rust_block.ferrispline")
97+
@patch("bot.core.spline.ferrispline")
9898
def test_get_render_data(self, mock_nurbslib):
9999
"""Tests the structure and content of the render dictionary (used by the viewer)."""
100100
tag = "42"

0 commit comments

Comments
 (0)