diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-11-11 14:57:08 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-11-11 14:57:08 -0500 |
| commit | 3cf0a1642eafe53e3c3b40b06cf105a32676a27f (patch) | |
| tree | 314230b1febe25874a92ae806e0d95913322375a /lib/sqlalchemy/testing/config.py | |
| parent | 5c7754d685df3715da76327c7401e99177611daf (diff) | |
| download | sqlalchemy-3cf0a1642eafe53e3c3b40b06cf105a32676a27f.tar.gz | |
Test fixture improvements
- ensure we escape out percent signs when a CompiledSQL or RegexSQL
has percent signs in the SQL or in the parameter repr
- to support combinations, print out complete test name in skip
messages, py.test environment gives us a way to do this
Change-Id: Ia9e62f7c1026c1465986144c5757e35fc164a2b8
Diffstat (limited to 'lib/sqlalchemy/testing/config.py')
| -rw-r--r-- | lib/sqlalchemy/testing/config.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/config.py b/lib/sqlalchemy/testing/config.py index 8262142ec..ae84a7878 100644 --- a/lib/sqlalchemy/testing/config.py +++ b/lib/sqlalchemy/testing/config.py @@ -89,6 +89,10 @@ def fixture(*arg, **kw): return _fixture_functions.fixture(*arg, **kw) +def get_current_test_name(): + return _fixture_functions.get_current_test_name() + + class Config(object): def __init__(self, db, db_opts, options, file_config): self._set_name(db) |
