Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
smcmurtry committed Jan 24, 2025
1 parent f585275 commit 0818ef1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/app/s3_client/test_s3_gc_organisations_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from app.s3_client.s3_gc_organisations_client import parse_gc_organisations_data
from app.s3_client.s3_gc_organisations_client import get_gc_organisations_from_s3, parse_gc_organisations_data


def test_parse_gc_organisations_data_sorts_alphabetically(mocker, app_):
Expand All @@ -25,3 +25,9 @@ def test_parse_gc_organisations_data_returns_empty_dict(mocker, app_):
parsed_data = parse_gc_organisations_data(test_data)
assert parsed_data["all"] == []
assert parsed_data["names"] == {}


def test_get_gc_organisations_from_s3_returns_empty_dict(mocker, app_):
"""No AWS credentials are set, so this fn should return an empty list"""
org_list = get_gc_organisations_from_s3(app_)
assert org_list == []

0 comments on commit 0818ef1

Please sign in to comment.