Skip to content

Commit

Permalink
Update tests/integration/test_owers_manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gitauto-ai[bot] authored Mar 3, 2025
1 parent dde62d0 commit f239ac6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/integration/test_owers_manager.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import pytest

# Integration test for the Supabase owners manager.
# This test checks basic functionality of the owers_manager module.
# For more details on Supabase, please refer to https://supabase.io/docs

from services.supabase import owers_manager
from tests.constants import OWNER, REPO, TOKEN

def test_owers_manager_integration():
"""
Integration test for services/supabase/owers_manager.py
This test ensures that the module can connect and retrieve owner records.
If the required function is not implemented, the test will be skipped.
"""
# Check if the function 'get_all_owners' exists
if hasattr(owers_manager, 'get_all_owners'):
result = owers_manager.get_all_owners(OWNER, TOKEN)

Check warning on line 19 in tests/integration/test_owers_manager.py

View check run for this annotation

Codecov / codecov/patch

tests/integration/test_owers_manager.py#L19

Added line #L19 was not covered by tests
# Assert that the result is a list, which would represent the owners
assert isinstance(result, list), "Expected a list of owners"

Check warning on line 21 in tests/integration/test_owers_manager.py

View check run for this annotation

Codecov / codecov/patch

tests/integration/test_owers_manager.py#L21

Added line #L21 was not covered by tests
else:
pytest.skip("Function get_all_owners is not implemented in owers_manager")

0 comments on commit f239ac6

Please sign in to comment.