mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-02 19:47:17 +08:00
Adding multiple db connections support for django-instrumentation's sqlcommenter (#1187)
This commit is contained in:
@ -86,7 +86,13 @@ _django_instrumentor = DjangoInstrumentor()
|
||||
class TestMiddleware(WsgiTestBase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
conf.settings.configure(ROOT_URLCONF=modules[__name__])
|
||||
conf.settings.configure(
|
||||
ROOT_URLCONF=modules[__name__],
|
||||
DATABASES={
|
||||
"default": {},
|
||||
"other": {},
|
||||
}, # db.connections gets populated only at first test execution
|
||||
)
|
||||
super().setUpClass()
|
||||
|
||||
def setUp(self):
|
||||
|
Reference in New Issue
Block a user