]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix the profiling ids here
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 Mar 2014 23:43:28 +0000 (18:43 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 Mar 2014 23:43:28 +0000 (18:43 -0500)
lib/sqlalchemy/testing/plugin/pytestplugin.py
test/profiles.txt

index 352cbbd5f90c03e76c4dffe8ff0a988b2902d125..c51768567ebabdd5ac8098141db9d4fd0307f50b 100644 (file)
@@ -112,7 +112,9 @@ def pytest_runtest_teardown(item):
     test_teardown(item)
 
 def test_setup(item):
-    id_ = "%s.%s:%s" % (item.parent.module.__name__, item.parent.name, item.name)
+    # like a nose id, e.g.:
+    # "test.aaa_profiling.test_compiler.CompileTest.test_update_whereclause"
+    id_ = "%s.%s.%s" % (item.parent.module.__name__, item.parent.cls.__name__, item.name)
     plugin_base.before_test(item, id_)
 
 def test_teardown(item):
index 79f34987404454a9b941e3422031a9bf573bbef4..cee0c5a6a467f216694c2001b511e14e3e27bb71 100644 (file)
@@ -1,15 +1,15 @@
 # /Users/classic/dev/sqlalchemy/test/profiles.txt
 # This file is written out on a per-environment basis.
-# For each test in aaa_profiling, the corresponding function and 
+# For each test in aaa_profiling, the corresponding function and
 # environment is located within this file.  If it doesn't exist,
 # the test is skipped.
-# If a callcount does exist, it is compared to what we received. 
+# If a callcount does exist, it is compared to what we received.
 # assertions are raised if the counts do not match.
-# 
-# To add a new callcount test, apply the function_call_count 
-# decorator and re-run the tests using the --write-profiles 
+#
+# To add a new callcount test, apply the function_call_count
+# decorator and re-run the tests using the --write-profiles
 # option - this file will be rewritten including the new count.
-# 
+#
 
 # TEST: test.aaa_profiling.test_compiler.CompileTest.test_insert
 
@@ -99,26 +99,6 @@ test.aaa_profiling.test_compiler.CompileTest.test_update_whereclause 3.3_postgre
 test.aaa_profiling.test_compiler.CompileTest.test_update_whereclause 3.3_postgresql_psycopg2_nocextensions 151
 test.aaa_profiling.test_compiler.CompileTest.test_update_whereclause 3.3_sqlite_pysqlite_cextensions 151
 
-# TEST: test.aaa_profiling.test_compiler.CompileTest:test_insert
-
-test.aaa_profiling.test_compiler.CompileTest:test_insert 2.7_sqlite_pysqlite_cextensions 73
-
-# TEST: test.aaa_profiling.test_compiler.CompileTest:test_select
-
-test.aaa_profiling.test_compiler.CompileTest:test_select 2.7_sqlite_pysqlite_cextensions 145
-
-# TEST: test.aaa_profiling.test_compiler.CompileTest:test_select_labels
-
-test.aaa_profiling.test_compiler.CompileTest:test_select_labels 2.7_sqlite_pysqlite_cextensions 179
-
-# TEST: test.aaa_profiling.test_compiler.CompileTest:test_update
-
-test.aaa_profiling.test_compiler.CompileTest:test_update 2.7_sqlite_pysqlite_cextensions 78
-
-# TEST: test.aaa_profiling.test_compiler.CompileTest:test_update_whereclause
-
-test.aaa_profiling.test_compiler.CompileTest:test_update_whereclause 2.7_sqlite_pysqlite_cextensions 147
-
 # TEST: test.aaa_profiling.test_orm.AttributeOverheadTest.test_attribute_set
 
 test.aaa_profiling.test_orm.AttributeOverheadTest.test_attribute_set 2.7_sqlite_pysqlite_cextensions 4265