Skip to content

Commit

Permalink
[feat] add speakers test
Browse files Browse the repository at this point in the history
  • Loading branch information
erik1110 committed Sep 16, 2023
1 parent b1582ce commit 68e82bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ccip/tests/api/test_ccip.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ def assert_data_structure(data, key):
assert 'en' in item
assert 'name' in item['zh']
assert 'name' in item['en']
if key == "speakers":
assert 'avatar' in item
assert 'bio' in item['zh']
assert 'bio' in item['en']

@pytest.mark.django_db
def test_data_structure(client):
Expand All @@ -22,6 +26,7 @@ def test_data_structure(client):
assert_data_structure(data, 'session_types')
assert_data_structure(data, 'tags')
assert_data_structure(data, 'rooms')
assert_data_structure(data, 'speakers')

@pytest.mark.django_db
def test_session(client):
Expand Down

0 comments on commit 68e82bd

Please sign in to comment.