diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-27 01:19:51 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-27 01:19:51 +0400 |
commit | 8a51d235e608dc45c30338aaaa74f925c185c73a (patch) | |
tree | d62a750e88fb3ea7fb52fcb9f498c7e60134421d /source | |
parent | dbeddcdbcef7d6622f08c4647e5253165dbebe07 (diff) |
pep8 cleanup
Diffstat (limited to 'source')
-rw-r--r-- | source/tests/bl_rna_wiki_reference.py | 9 | ||||
-rw-r--r-- | source/tests/bl_run_operators.py | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/source/tests/bl_rna_wiki_reference.py b/source/tests/bl_rna_wiki_reference.py index a4019214138..cfe7f22f7dd 100644 --- a/source/tests/bl_rna_wiki_reference.py +++ b/source/tests/bl_rna_wiki_reference.py @@ -29,9 +29,10 @@ import bpy + def test_data(): import rna_wiki_reference - + assert(isinstance(rna_wiki_reference.url_manual_mapping, tuple)) for i, value in enumerate(rna_wiki_reference.url_manual_mapping): try: @@ -44,12 +45,11 @@ def test_data(): traceback.print_exc() raise -# a stripped down version of api_dump() in rna_info_dump.py +# a stripped down version of api_dump() in rna_info_dump.py def test_lookup_coverage(): def rna_ids(): - import rna_info struct = rna_info.BuildRNAInfo()[0] for struct_id, v in sorted(struct.items()): @@ -81,11 +81,12 @@ def test_lookup_coverage(): print("") print("---------------------") print("Undocumented Sections") - + for rna_group in sorted(set_group_all): if rna_group not in set_group_doc: print("%s.*" % rna_group) + def test_urls(): pass # TODO diff --git a/source/tests/bl_run_operators.py b/source/tests/bl_run_operators.py index 146b60b8f28..f792b83a8cd 100644 --- a/source/tests/bl_run_operators.py +++ b/source/tests/bl_run_operators.py @@ -89,6 +89,7 @@ def run_ops(operators, setup_func=None, reset=True): bpy.ops.wm.read_factory_settings() setup_func() + # contexts def ctx_clear_scene(): # copied from batch_import.py unique_obs = set() @@ -231,7 +232,7 @@ def main(): #import random #random.shuffle(operators) - + # 2 passes, first just run setup_func to make sure they are ok for operators_test in ((), operators): # Run the operator tests in different contexts @@ -259,7 +260,7 @@ def main(): run_ops(operators_test, setup_func=ctx_editmode_mball) run_ops(operators_test, setup_func=ctx_editmode_text) run_ops(operators_test, setup_func=ctx_editmode_lattice) - + if not operators_test: print("All setup functions run fine!") |