Commit Graph

106 Commits

Author SHA1 Message Date
wmayer
021e0a192f Gui: fix SelectionSingleton::sHasSelection 2023-11-24 15:06:00 +01:00
wmayer
35d1380d84 Test: add unit tests for PropertyPythonObject 2023-09-25 14:48:54 +02:00
wmayer
e48964fad5 Test: apply clang format 2023-09-04 07:22:09 -05:00
luzpaz
38a01939e0 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
Ronny Standtke
edc7ae8bd7 removed test gainst label name (useless because of i18n) 2023-04-20 21:51:18 +02:00
wmayer
9efac962ac App: fix failure to detect cyclic dependencies on expressions
See also forum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=74331
2023-01-02 16:36:10 +01:00
wmayer
d60f2e291f Core: fixes #8119: Make axis values in Property view persistent 2023-01-02 12:48:40 +01:00
wmayer
ecd9b0136d Test: [skip ci] add method clear() to document observers 2022-11-14 19:53:35 +01:00
wmayer
9f8cfe22f8 App: add tests for cell rows and absolute cells 2022-10-13 20:16:48 +02:00
wmayer
3f07755a8f Test: add test feature for unit tests 2022-08-22 15:46:40 +02:00
luz paz
aec90797b4 Fix various 'testing inequality to None' syntax issues
Substitute `is not None` for `!= None`
2022-07-30 22:41:31 -04:00
wmayer
a693b1bf4e Test: [skip ci] fix typo 2022-07-27 13:35:34 +02:00
wmayer
f3b02a487f App/Test: implement unit test for PR #7250 2022-07-27 13:22:00 +02:00
wmayer
02718d99bb Test: extend test for enumeration 2022-06-28 21:24:19 +02:00
wmayer
36208f38e0 Test: [skip ci] extend test for issue #6949 2022-06-11 16:10:09 +02:00
0penBrain
7892f31c31 Expression: add unit test for issue #6948 2022-06-11 15:59:06 +02:00
0penBrain
d96a7ac9d8 [Bugfix] Expression: fix precedence+associativity management in parenthesis removal
Fixes #6948
2022-06-11 15:59:06 +02:00
wmayer
fc9e19aafb Test: [skip ci] add unit tests for PR #6907 2022-05-24 14:17:44 +02:00
wmayer
f4a0387dc9 Test: unit test for sub-objects related to PR #6888 2022-05-16 11:29:18 +02:00
wmayer
fbb992b578 Test: unit test for sub-objects related to PR #6838 2022-05-14 16:32:19 +02:00
wmayer
d0f47f2afa App: fix restoring the attributes of a dynamic property
For more details see: https://forum.freecadweb.org/viewtopic.php?p=591465#p591465
2022-05-03 16:52:54 +02:00
wmayer
94dceaf09a Test: [skip ci] add unit tests for Prop_None and Prop_Output 2022-05-03 11:46:04 +02:00
wmayer
a6d0338d0b Test: [skip ci] add missing unit test for PR #6787: fix property conflict in App::Link restore 2022-04-25 14:50:47 +02:00
wmayer
042d9d248e App: correctly handle int as argument for ocumentPy::getObject
Add a unit test to confirm correct behaviour
2022-03-09 23:02:22 +01:00
wmayer
2a3991d799 App: do not hide actual exception type in DocumentObjectPy::addProperty/DocumentObjectPy::removeProperty
and throw TypeError in DynamicProperty::addDynamicProperty() if the based type id is invalid
2022-01-19 10:48:00 +01:00
wmayer
80492d0b2a Test: add unit tests to test with wrong types 2022-01-19 10:19:00 +01:00
wmayer
b8af2f3d52 Test: [skip ci] add test for issue 4823
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=52775
2022-01-15 14:07:28 +01:00
wmayer
1e71c7ce5b Test: explicitly switch on undo/redo mode in testIssue4649 2021-12-10 00:04:40 +01:00
wmayer
c618f069a1 Test: disable a test that fails in command line mode 2021-12-09 21:32:02 +01:00
wmayer
5dc14d2e48 Test: add unit test for issue 0004649 2021-12-09 18:47:38 +01:00
Zheng, Lei
27f24c069d Test: fix test case
Adding dynamic property with an invalid name or existing name is now an
error, because there is no easy way for Python code to find out the name
of a property if it is auto renamed.
2021-11-21 19:03:53 -06:00
Bernd Waibel
203d408429 [Test] fix failing test
Solves an issue with the test module when running test-suite
as described in
https://forum.freecadweb.org/viewtopic.php?f=10&t=58099

Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
2021-04-28 22:09:55 +02:00
Chris Hennes
6b16e12d7c [OTHER] Catch only Exception, not BaseException 2021-02-11 11:52:45 +01:00
Stefan Tröger
ec5ac30756 Remove ExtensionProxy and rely on default Python proxy for extensions. fixes #0004534 2021-01-30 16:00:48 +01:00
Markus Lampert
5ba83fc393 Expose PropertyEnumeration values list to python. 2020-12-31 20:06:02 -08:00
luz paz
26636dbbad Test: Fix header uniformity, whitespace, doxygen headers 2020-11-18 08:58:06 +01:00
wmayer
a08435a53c App: add documentation to PropertyCleaner
move global variables static variables of PropertyCleaner
add unit test for removal of property in onBeforeChange
2020-03-21 18:33:08 +01:00
Stefan Tröger
7b79012ae1 Implement and test extension events 2020-02-13 14:39:46 +01:00
luz.paz
30d2e29e0c LGTM: various fixes for using string operator instead of numeric 2019-10-25 10:33:12 -03:00
Zheng, Lei
de93446a1c Test cases changes
Slight adjustment of various test cases due to various API changes.
2019-08-17 15:32:48 +02:00
wmayer
b979366e9c add unit test to verify that removing a property alo removes a dependency 2019-03-18 14:31:18 +01:00
wmayer
a8a6c6572f fix document observer classes to allow to run unit tests multiple times 2019-03-03 13:57:24 +01:00
wmayer
72314b0154 make unit tests about document observer more reliably 2018-11-08 16:19:06 +01:00
wmayer
ec46f95192 Add unit tests to check the new Prop_NoRecompute value 2018-11-08 10:24:14 +01:00
wmayer
e8d5075b43 + minor fix in Document unit tests 2018-11-05 11:21:50 +01:00
wmayer
550d62bb6a replace deprecated failUnless with assertEqual 2018-10-27 17:44:37 +02:00
ickby
d5cbee5543 Persistence: Test cases for content dump
It turned our that the document could not be dumped as the xml specifier was used as first element. As the dumping added the <content> element around it was invalid. However, content is required to read properties. Hence the xml element generation was moved.
2018-10-27 16:15:30 +02:00
wmayer
5f6a6cde9c fix bug in PropertyPlacementList::RestoreDocFile 2018-10-22 12:06:54 +02:00
wmayer
bf4dd7920e emit signal when starting and finishing to save a document 2018-10-08 14:03:00 +02:00
ickby
b84edf59af Make document observer testcases work in cmd line mode 2018-10-08 11:06:25 +02:00