Skip to content

Commit

Permalink
final fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hagen-danswer committed Nov 4, 2024
1 parent b797a9f commit 0a7b618
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 30 deletions.
15 changes: 0 additions & 15 deletions backend/tests/daily/connectors/gmail/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
14 changes: 0 additions & 14 deletions backend/tests/daily/connectors/google_drive/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit 0a7b618

Please sign in to comment.