mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed unneeded @no_oracle skips.
This commit is contained in:
committed by
Mariusz Felisiak
parent
7734337bcb
commit
c3b1e41288
@@ -24,23 +24,6 @@ def skipUnlessGISLookup(*gis_lookups):
|
||||
return decorator
|
||||
|
||||
|
||||
def no_backend(test_func, backend):
|
||||
"Use this decorator to disable test on specified backend."
|
||||
if settings.DATABASES[DEFAULT_DB_ALIAS]['ENGINE'].rsplit('.')[-1] == backend:
|
||||
@unittest.skip("This test is skipped on '%s' backend" % backend)
|
||||
def inner():
|
||||
pass
|
||||
return inner
|
||||
else:
|
||||
return test_func
|
||||
|
||||
|
||||
# Decorators to disable entire test functions for specific
|
||||
# spatial backends.
|
||||
def no_oracle(func):
|
||||
return no_backend(func, 'oracle')
|
||||
|
||||
|
||||
# Shortcut booleans to omit only portions of tests.
|
||||
_default_db = settings.DATABASES[DEFAULT_DB_ALIAS]['ENGINE'].rsplit('.')[-1]
|
||||
oracle = _default_db == 'oracle'
|
||||
|
||||
Reference in New Issue
Block a user