-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests/integration/test_owers_manager.py
- Loading branch information
1 parent
dde62d0
commit f239ac6
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
# Assert that the result is a list, which would represent the owners | ||
assert isinstance(result, list), "Expected a list of owners" | ||
else: | ||
pytest.skip("Function get_all_owners is not implemented in owers_manager") |