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):
# /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
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