Python sqlalchemy.testing.profiling._current_test() Examples
The following are 8
code examples of sqlalchemy.testing.profiling._current_test().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
sqlalchemy.testing.profiling
, or try the search function
.
Example #1
Source File: plugin_base.py From jbox with MIT License | 5 votes |
def before_test(test, test_module_name, test_class, test_name): # like a nose id, e.g.: # "test.aaa_profiling.test_compiler.CompileTest.test_update_whereclause" name = test_class.__name__ suffix = "_%s_%s" % (config.db.name, config.db.driver) if name.endswith(suffix): name = name[0:-(len(suffix))] id_ = "%s.%s.%s" % (test_module_name, name, test_name) profiling._current_test = id_
Example #2
Source File: plugin_base.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def before_test(test, test_module_name, test_class, test_name): # like a nose id, e.g.: # "test.aaa_profiling.test_compiler.CompileTest.test_update_whereclause" name = test_class.__name__ suffix = "_%s_%s" % (config.db.name, config.db.driver) if name.endswith(suffix): name = name[0:-(len(suffix))] id_ = "%s.%s.%s" % (test_module_name, name, test_name) profiling._current_test = id_
Example #3
Source File: plugin_base.py From planespotter with MIT License | 5 votes |
def before_test(test, test_module_name, test_class, test_name): # like a nose id, e.g.: # "test.aaa_profiling.test_compiler.CompileTest.test_update_whereclause" name = getattr(test_class, '_sa_orig_cls_name', test_class.__name__) id_ = "%s.%s.%s" % (test_module_name, name, test_name) profiling._current_test = id_
Example #4
Source File: plugin_base.py From pyRevit with GNU General Public License v3.0 | 5 votes |
def before_test(test, test_module_name, test_class, test_name): # like a nose id, e.g.: # "test.aaa_profiling.test_compiler.CompileTest.test_update_whereclause" name = test_class.__name__ suffix = "_%s_%s" % (config.db.name, config.db.driver) if name.endswith(suffix): name = name[0:-(len(suffix))] id_ = "%s.%s.%s" % (test_module_name, name, test_name) profiling._current_test = id_
Example #5
Source File: plugin_base.py From stdm with GNU General Public License v2.0 | 5 votes |
def before_test(test, test_module_name, test_class, test_name): # like a nose id, e.g.: # "tests.aaa_profiling.test_compiler.CompileTest.test_update_whereclause" name = test_class.__name__ suffix = "_%s_%s" % (config.db.name, config.db.driver) if name.endswith(suffix): name = name[0:-(len(suffix))] id_ = "%s.%s.%s" % (test_module_name, name, test_name) warnings.resetwarnings() profiling._current_test = id_
Example #6
Source File: plugin_base.py From jarvis with GNU General Public License v2.0 | 5 votes |
def before_test(test, test_module_name, test_class, test_name): # like a nose id, e.g.: # "test.aaa_profiling.test_compiler.CompileTest.test_update_whereclause" name = getattr(test_class, '_sa_orig_cls_name', test_class.__name__) id_ = "%s.%s.%s" % (test_module_name, name, test_name) profiling._current_test = id_
Example #7
Source File: plugin_base.py From moviegrabber with GNU General Public License v3.0 | 5 votes |
def before_test(test, test_module_name, test_class, test_name): # like a nose id, e.g.: # "test.aaa_profiling.test_compiler.CompileTest.test_update_whereclause" name = test_class.__name__ suffix = "_%s_%s" % (config.db.name, config.db.driver) if name.endswith(suffix): name = name[0:-(len(suffix))] id_ = "%s.%s.%s" % (test_module_name, name, test_name) warnings.resetwarnings() profiling._current_test = id_
Example #8
Source File: plugin_base.py From android_universal with MIT License | 5 votes |
def before_test(test, test_module_name, test_class, test_name): # like a nose id, e.g.: # "test.aaa_profiling.test_compiler.CompileTest.test_update_whereclause" name = getattr(test_class, '_sa_orig_cls_name', test_class.__name__) id_ = "%s.%s.%s" % (test_module_name, name, test_name) profiling._current_test = id_