Andrej730
b3778facda
Fix core drawing tests after be65774
2025-06-24 19:08:41 +05:00
Andrej730
90ab846a18
typing
2025-06-20 18:48:34 +05:00
Andrej730
42b777b1f0
application ui - support changing organization
2025-06-19 19:28:34 +05:00
Andrej730
a968cad4cc
core/tool tests for application methods
2025-06-19 19:28:34 +05:00
Andrej730
b1bfe5c3b3
tool.ifc.run - replace with direct api calls
2025-06-18 19:12:11 +05:00
Andrej730
c68b0c7280
typing
2025-06-18 19:12:10 +05:00
Andrej730
a12bb343ca
Fix RUF015 (next() instead of list comprehensions[0])
...
https://docs.astral.sh/ruff/rules/-iterable-allocation-for-first-element/
2025-06-16 19:55:25 +05:00
Andrej
8b4683aef1
replace api.run with static methods
2025-06-09 18:03:19 +05:00
Andrej
02d359d0e6
Fix Ruff UP035 (also deprecated annotation symbols)
2025-06-09 18:03:19 +05:00
Andrej
7d4176d105
Fix Ruff UP006 (deprecated annotation symbols)
2025-06-09 18:03:18 +05:00
Andrej
bf4a3f074f
typing
2025-06-06 19:06:46 +05:00
Andrej
6de16bf658
bim.reassign_class - add simple test to cover cases like #6781
2025-06-06 13:11:58 +05:00
Andrej
2da183bfa6
bpy._typing -> bpy.stub_internal
...
https://github.com/nutti/fake-bpy-module/issues/362
2025-06-04 19:04:31 +05:00
Andrej
7cde9629f8
Fix Ruff UP034 (extraneous-parentheses)
...
https://docs.astral.sh/ruff/rules/extraneous-parentheses/
2025-05-28 18:24:13 +05:00
Andrej
7259dd625f
Fix Ruff UP013 (convert-typed-dict-functional-to-class)
...
https://docs.astral.sh/ruff/rules/convert-typed-dict-functional-to-class/
2025-05-28 18:24:12 +05:00
Dion Moult
72ef055946
Add tests for boundary
2025-05-27 10:38:38 +10:00
Dion Moult
242d70c311
Fix set update in loop bug when trying to filter elements by spatial container
2025-05-26 10:47:05 +10:00
Andrej730
66f4c957ea
black .
2025-05-19 19:28:55 +05:00
Dion Moult
67016d6f90
See #2999 . Reimplement basic creation of structural items.
2025-05-19 17:36:12 +10:00
Dion Moult
404bf13a18
Update colour by property test to reflect new behaviour of only showing geometry not empties
...
ALL (feature) TESTS PASS YESS
2025-05-18 19:23:34 +10:00
Dion Moult
3a37bcdcaa
Update test cases to reflect new drawing activation UI
2025-05-18 19:09:29 +10:00
Dion Moult
1de2515fcd
More bSDD tests to cover all current functionality
2025-05-18 12:05:33 +10:00
Dion Moult
22f10e5549
Fix #6669 . bSDD now supports test dictionaries, refactor domain to dictionary, support zero length keyword searches, multi-dict support, and basic tests.
...
Feature tests can now have more sophisticated per UIList item spies.
2025-05-17 21:28:12 +10:00
Andrej730
c8841bcb6a
Add a test for be65774
2025-05-15 20:01:01 +05:00
Andrej730
b20997dea8
Fix tests missing assert statement - add assert and fix them
2025-05-15 19:45:11 +05:00
Andrej730
e4a50b32ce
typing
2025-05-15 19:40:44 +05:00
Andrej730
5aa5552759
Fix drawing test after be657748f
2025-05-09 19:26:27 +05:00
Andrej730
43d4adbd9d
Fix tests after specifying types more precisely in def9352ad
2025-05-09 19:26:27 +05:00
Andrej730
94cf56e080
typing
2025-05-07 18:54:56 +05:00
Andrej730
c2f9bfeb8d
Fix bim search tests after 0b22333
2025-05-06 20:07:44 +05:00
Andrej730
3ab1c2e0f9
outliner.delete - make errors from attempt to delete locked object less scary
...
Traceback errors give users an impression that some broke and maybe project now is in some invalid state and they should ctrl-z immediately, error reports are much more friendly.
Before - https://i.imgur.com/N4fUU1M.png
After - https://i.imgur.com/6On1Be0.png
2025-05-06 19:03:05 +05:00
Andrej730
06a2cecb51
typing
2025-05-06 15:15:03 +05:00
Andrej730
e792cf8fa0
get_uri, resolve_uri - refactor #6605
...
1) Use pathlib for consistency
2) Ensure consistent output - always use posix format and resolve paths (but keep the symlinks)
2025-04-29 15:20:45 +05:00
Andrej730
30242d859e
Fix core test for drawing duplication ( 0b1c049)
2025-04-25 19:47:16 +05:00
Andrej730
330799c799
core tests - very readable error for unpredicted return values
...
Previously:
E TypeError: Object of type Prophecy is not JSON serializable
Now:
E TypeError: Failed to serialize call: '{'name': 'duplicate_ifc_objects', 'args': ([<Prophecy for 'bonsai.core.tool.Ifc'>],), 'kwargs': {}}'.
E Possibly due to unpredicted return value for some call.
E See the list of the recent calls without return values:
E - {'name': 'get_object', 'args': ('annotation',), 'kwargs': {}}
E - {'name': 'run', 'args': ('group.assign_group',), 'kwargs': {'group': 'new_group', 'products': ['new_drawing']}}
E - {'name': 'run', 'args': ('group.edit_group',), 'kwargs': {'group': 'new_group', 'attributes': {'Name': 'unique_name', 'ObjectType': 'DRAWING'}}}
E - {'name': 'run', 'args': ('group.unassign_group',), 'kwargs': {'group': 'group', 'products': ['new_drawing']}}
2025-04-25 19:47:15 +05:00
Andrej730
e2c2234199
core tests - more readable errors
...
E.g. it shows now:
AttributeError: Interface 'bonsai.core.tool.Drawing' has no attribute 'weird_method'.
Instead of:
Prophecy <class 'abc.Drawing'> has no attribute weird_method
2025-04-25 19:47:15 +05:00
Andrej730
34efa9f459
typing
2025-04-25 19:47:15 +05:00
Andrej730
8d31d93531
typing
2025-04-22 16:37:05 +05:00
Dion Moult
56bfe80b3b
Fix #6501 . Fix #6104 . Fix #6189 . You can now change wall offset convention after drawing walls.
...
People kept on getting confused with the align tool thinking it changed
the baseline to reference line offset whereas it actually just aligned
the object bodies. This tool now does exactly that.
Also start refactoring the "DumbWall" classes into the tools so we can
test them properly.
2025-04-21 17:17:09 +10:00
Dion Moult
2db6b860b2
See #6501 . Fix bug where wall alignment didn't strictly check for poll requirements prior to executing operator.
2025-04-21 15:38:26 +10:00
Dion Moult
df18108406
Add tests for sheet creation and drawing / sheet generation
2025-04-19 17:36:21 +10:00
Dion Moult
4896a69981
Add test cases for drawing duplication and shapely fill mode.
2025-04-19 13:42:36 +10:00
Dion Moult
5a6476a57f
Fix #3673 . Bug where a split wall broke flipped doors.
...
Instead of regenerating fills upon splitting walls, placements are
preserved exactly.
2025-04-17 16:28:05 +10:00
Andrej730
d9ed6a4950
Fix bim test after 1e3f1e7dfc
2025-04-11 19:55:26 +05:00
Andrej730
cf1f74e260
typing
2025-04-09 18:26:53 +05:00
Andrej730
605c86afc5
Fix void bim tests after bim.add_potential_opening was removed
2025-04-03 18:06:48 +05:00
Andrej730
68cf8ee247
BIM tests - replace some class assignment with PanelSpy version
2025-04-03 18:06:48 +05:00
Andrej730
a452d1d361
Fix failing bim tests after 5b33c60
2025-04-03 18:06:48 +05:00
Andrej730
7bacdbf8dd
typing
2025-04-03 17:45:49 +05:00
Andrej730
3cbab975d5
Fix tests after ea84f82
2025-04-02 19:29:43 +05:00