diff options
author | Jason Kirtland <jek@discorporate.us> | 2008-01-12 22:03:42 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2008-01-12 22:03:42 +0000 |
commit | 17d3c8764e020379e54053bca0b0a2bc71d48aa0 (patch) | |
tree | 0b46f1ddc57292b8f5bfbc28ab1679230f63e426 /test/profiling/compiler.py | |
parent | c194962019d1bc7322e20b82c33aa1bab3bc2a28 (diff) | |
download | sqlalchemy-17d3c8764e020379e54053bca0b0a2bc71d48aa0.tar.gz |
- testbase is gone, replaced by testenv
- Importing testenv has no side effects- explicit functions provide similar behavior to the old immediate behavior of testbase
- testing.db has the configured db
- Fixed up the perf/* scripts
Diffstat (limited to 'test/profiling/compiler.py')
-rw-r--r-- | test/profiling/compiler.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/profiling/compiler.py b/test/profiling/compiler.py index 9395fb927..58533f700 100644 --- a/test/profiling/compiler.py +++ b/test/profiling/compiler.py @@ -1,4 +1,4 @@ -import testbase +import testenv; testenv.configure_for_tests() from sqlalchemy import * from testlib import * @@ -15,20 +15,20 @@ class CompileTest(AssertMixin): Column('c1', Integer, primary_key=True), Column('c2', String(30))) - @profiling.profiled('ctest_insert', call_range=(40, 50), always=True) + @profiling.profiled('ctest_insert', call_range=(40, 50), always=True) def test_insert(self): t1.insert().compile() - @profiling.profiled('ctest_update', call_range=(40, 50), always=True) + @profiling.profiled('ctest_update', call_range=(40, 50), always=True) def test_update(self): t1.update().compile() # TODO: this is alittle high - @profiling.profiled('ctest_select', call_range=(110, 140), always=True) + @profiling.profiled('ctest_select', call_range=(110, 140), always=True) def test_select(self): s = select([t1], t1.c.c2==t2.c.c1) s.compile() - - + + if __name__ == '__main__': - testbase.main() + testenv.main() |