From 19f5a48326b6aa51c1deb7e3acc2e5e6ba6ef749 Mon Sep 17 00:00:00 2001 From: Tim Pansino Date: Mon, 24 Jul 2023 15:55:52 -0700 Subject: [PATCH] Remove unnecessary settings lookups --- tests/datastore_firestore/test_collections.py | 5 ----- tests/datastore_firestore/test_documents.py | 5 ----- 2 files changed, 10 deletions(-) diff --git a/tests/datastore_firestore/test_collections.py b/tests/datastore_firestore/test_collections.py index c416ec4e28..30f26eb8f9 100644 --- a/tests/datastore_firestore/test_collections.py +++ b/tests/datastore_firestore/test_collections.py @@ -14,17 +14,12 @@ from newrelic.api.time_trace import current_trace from newrelic.api.datastore_trace import DatastoreTrace -from testing_support.db_settings import firestore_settings from testing_support.validators.validate_transaction_metrics import validate_transaction_metrics from newrelic.api.background_task import background_task from testing_support.validators.validate_database_duration import ( validate_database_duration, ) -DB_SETTINGS = firestore_settings()[0] -FIRESTORE_HOST = DB_SETTINGS["host"] -FIRESTORE_PORT = DB_SETTINGS["port"] - def _exercise_firestore(collection): collection.document("DoesNotExist") diff --git a/tests/datastore_firestore/test_documents.py b/tests/datastore_firestore/test_documents.py index 9850c2c58d..be47e820fd 100644 --- a/tests/datastore_firestore/test_documents.py +++ b/tests/datastore_firestore/test_documents.py @@ -14,17 +14,12 @@ from newrelic.api.time_trace import current_trace from newrelic.api.datastore_trace import DatastoreTrace -from testing_support.db_settings import firestore_settings from testing_support.validators.validate_transaction_metrics import validate_transaction_metrics from newrelic.api.background_task import background_task from testing_support.validators.validate_database_duration import ( validate_database_duration, ) -DB_SETTINGS = firestore_settings()[0] -FIRESTORE_HOST = DB_SETTINGS["host"] -FIRESTORE_PORT = DB_SETTINGS["port"] - def _exercise_firestore(collection): italy_doc = collection.document("Italy")