Campbell Barton
3035235def
Cleanup: run autopep8 on tests/
2022-04-19 15:25:55 +10:00
Campbell Barton
c434782e3a
File headers: SPDX License migration
...
Use a shorter/simpler license convention, stops the header taking so
much space.
Follow the SPDX license specification: https://spdx.org/licenses
- C/C++/objc/objc++
- Python
- Shell Scripts
- CMake, GNUmakefile
While most of the source tree has been included
- `./extern/` was left out.
- `./intern/cycles` & `./intern/atomic` are also excluded because they
use different header conventions.
doc/license/SPDX-license-identifiers.txt has been added to list SPDX all
used identifiers.
See P2788 for the script that automated these edits.
Reviewed By: brecht, mont29, sergey
Ref D14069
2022-02-11 09:14:36 +11:00
Brecht Van Lommel
7d5ef64bfb
Cleanup: fix typos in comments and docs
...
Contributed by luzpaz.
Differential Revision: https://developer.blender.org/D13264
2021-11-19 12:46:49 +01:00
Bastien Montagne
06a74e7816
LibLink/Append tests: Add basic testing of bpy.data.libraries.load code.
2021-11-11 14:54:26 +01:00
Bastien Montagne
d3328fabc9
Attempt to fix failing lib link test on windows.
...
According to https://docs.python.org/3/library/os.html#os.rename,
`os.rename` has os-specific behavior, and will fail in case you attempt
to rename to an existing file on windows.
So using `os.replace` instead, which should be os-agnostic.
NOTE: Fact that temp test directory is not cleared after tests are
sucessfully ran does not sound great...
2021-11-04 15:06:58 +01:00
Bastien Montagne
2d6d8fc7ca
Attempt fix for new lib reload/relocate tests on windows.
...
Try splitting them into their own class.
2021-11-04 11:25:30 +01:00
Bastien Montagne
1b2342b4d3
Tests: Add basic unittest for library reload and relocate operators.
2021-11-02 15:33:30 +01:00
Bastien Montagne
6cd191a660
Link/Append tests: properly support and test with/without 'recursive' behaviors.
...
This requires adding an extra ('indirect') library to the test cases for
append.
Aftermath of T92224.
2021-10-20 11:58:06 +02:00
Bastien Montagne
a3d4ed20f9
Fix liblink tests after recent commit.
...
NOTE: This needs new tests, no time now, will do tomorrow.
2021-10-19 18:01:26 +02:00
Campbell Barton
6dceaafe5a
Cleanup: trailing space, newlines at EOF
2021-09-29 07:30:34 +10:00
Bastien Montagne
f48a4aa0f9
LibLink Append: Expose 'reuse ID' through new BLO flag, and add basic tests.
...
Option is now available to append operator, alsthough hidden and
disabled by default.
2021-09-23 12:56:05 +02:00
Bastien Montagne
0ed089cebd
LibLink: Enable unittest that was previously failing in append case.
...
Previous commit fixed it.
2021-09-14 17:59:18 +02:00
Bastien Montagne
81978594a8
Fix tests broken by rB58632a7f3c0f1be6.
...
Commits breaking RNA API should always run all tests, and do text search
in python code base to ensure everything is updated as needed.
2021-09-06 10:56:02 +02:00
Bastien Montagne
8355e3fc77
Unittest: Extend and basic linking tests and add basic append tests.
...
We could check many more things still, but this should already cover
most basic common cases.
2021-09-01 12:51:07 +02:00
Campbell Barton
ef7efc3751
Tests: don't write thumbnails when running tests
...
Also replace WM_OT_read_factory_settings with WM_OT_read_homefile
so the preferences don't have to be reloaded.
2021-03-04 17:43:12 +11:00
Campbell Barton
e21f1136c2
Tests: fix 'ctest -j' running multiple tests at once
...
bl_blendfile_io & bl_blendfile_liblink shared a filename,
which could make these tests fail.
2020-12-10 17:18:38 +11:00
Campbell Barton
41d2d6da0c
Cleanup: pep8 (indentation, spacing, long lines)
2020-10-02 11:59:16 +10:00
Campbell Barton
bab9de2a52
Cleanup: pep8, blank lines
2020-10-02 11:59:16 +10:00
Brecht Van Lommel
6cab53eaaa
Tests: fix some tests passing even if there are Python errors
...
Blender was not configured to exit with non-zero return code on Python errors.
A bunch of tests worked around this but not all. This removes the need for such
workarounds.
2020-04-28 12:50:16 +02:00
Bastien Montagne
8a2228a597
Remove debug prints from blendfile_liblink.
...
rBf35f7bd97a4151 was the proper fix it seems.
2020-02-18 10:28:33 +01:00
Bastien Montagne
a5ac142a31
Temp debug prints for liblink tests to check what happens on windows.
2020-02-17 21:41:15 +01:00
Bastien Montagne
0c5014aaef
Cleanup: Deduplicate some code in new blenfile io/linking tests.
2020-02-14 12:18:21 +01:00
Bastien Montagne
d46273563e
Add initial, very basic save/open & library linking blendfile tests.
...
Do not do much for now, but would have been enough to catch the crash
introduced the other day in linking code...
2020-02-13 17:48:00 +01:00