Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions backend/tests/unit/test_people_conversations_500s.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def test_list_endpoint_uses_without_photos(self):
import os

router_path = os.path.join(os.path.dirname(__file__), '..', '..', 'routers', 'conversations.py')
with open(router_path) as f:
with open(router_path, encoding='utf-8') as f:
source = f.read()
# The list endpoint function should call get_conversations_without_photos
assert 'get_conversations_without_photos' in source
Expand All @@ -179,7 +179,7 @@ def test_get_conversations_without_photos_has_folder_starred(self):
import os

db_path = os.path.join(os.path.dirname(__file__), '..', '..', 'database', 'conversations.py')
with open(db_path) as f:
with open(db_path, encoding='utf-8') as f:
source = f.read()
# Find the function definition and check its parameters
assert 'def get_conversations_without_photos(' in source
Expand All @@ -199,7 +199,7 @@ def test_without_photos_function_not_decorated_with_photos(self):
import re

db_path = os.path.join(os.path.dirname(__file__), '..', '..', 'database', 'conversations.py')
with open(db_path) as f:
with open(db_path, encoding='utf-8') as f:
source = f.read()

# Find the function definition and the lines preceding it (decorators)
Expand All @@ -223,7 +223,7 @@ def test_with_photos_present_on_get_conversations(self):
import os

db_path = os.path.join(os.path.dirname(__file__), '..', '..', 'database', 'conversations.py')
with open(db_path) as f:
with open(db_path, encoding='utf-8') as f:
source = f.read()

lines = source.split('\n')
Expand Down
Loading