diff --git a/backend/tests/daily/connectors/gmail/conftest.py b/backend/tests/daily/connectors/gmail/conftest.py index f69d314646b..5010d0b5133 100644 --- a/backend/tests/daily/connectors/gmail/conftest.py +++ b/backend/tests/daily/connectors/gmail/conftest.py @@ -17,21 +17,6 @@ from tests.load_env_vars import load_env_vars -# def load_env_vars(env_file: str = ".env") -> None: -# current_dir = os.path.dirname(os.path.abspath(__file__)) -# env_path = os.path.join(current_dir, env_file) -# try: -# with open(env_path, "r") as f: -# for line in f: -# line = line.strip() -# if line and not line.startswith("#"): -# key, value = line.split("=", 1) -# os.environ[key] = value.strip() -# print("Successfully loaded environment variables") -# except FileNotFoundError: -# print(f"File {env_file} not found") - - # Load environment variables at the module level load_env_vars() diff --git a/backend/tests/daily/connectors/google_drive/conftest.py b/backend/tests/daily/connectors/google_drive/conftest.py index e09462e53d2..4b618b28e1d 100644 --- a/backend/tests/daily/connectors/google_drive/conftest.py +++ b/backend/tests/daily/connectors/google_drive/conftest.py @@ -16,20 +16,6 @@ ) from tests.load_env_vars import load_env_vars -# def load_env_vars(env_file: str = ".env") -> None: -# current_dir = os.path.dirname(os.path.abspath(__file__)) -# env_path = os.path.join(current_dir, env_file) -# try: -# with open(env_path, "r") as f: -# for line in f: -# line = line.strip() -# if line and not line.startswith("#"): -# key, value = line.split("=", 1) -# os.environ[key] = value.strip() -# print("Successfully loaded environment variables") -# except FileNotFoundError: -# print(f"File {env_file} not found") - # Load environment variables at the module level load_env_vars() diff --git a/backend/tests/daily/connectors/google_drive/test_google_drive_slim_docs.py b/backend/tests/daily/connectors/google_drive/test_google_drive_slim_docs.py index 45f7ecc243c..1361c198849 100644 --- a/backend/tests/daily/connectors/google_drive/test_google_drive_slim_docs.py +++ b/backend/tests/daily/connectors/google_drive/test_google_drive_slim_docs.py @@ -153,7 +153,8 @@ def test_all_permissions( assert_correct_access_for_user( user_email=EMAIL_MAPPING["ADMIN"], expected_access_ids=list(range(0, 5)) # Admin's My Drive - + list(range(20, 60)), # All shared drive content + + list(range(20, 60)) # All shared drive content + + [61], # Sections group_map=group_map, retrieved_access_map=access_map, )