fix(ingest/sql): disable patch checker (#11910)

This commit is contained in:
Harshal Sheth 2024-11-20 13:48:56 -08:00 committed by GitHub
parent 7e9fa81580
commit 37bb0c9eae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import os
import sys
def is_pytest_running() -> bool:
return "pytest" in sys.modules
return "pytest" in sys.modules and os.environ.get("DATAHUB_TEST_MODE") == "1"

View File

@ -7,6 +7,7 @@ from typing import List
import pytest
os.environ["DATAHUB_SUPPRESS_LOGGING_MANAGER"] = "1"
os.environ["DATAHUB_TEST_MODE"] = "1"
# Enable debug logging.
logging.getLogger().setLevel(logging.DEBUG)