Skip to content

Commit

Permalink
Merge pull request pycontw#5 from erik1110/feature/unit_test
Browse files Browse the repository at this point in the history
[style] flake8
  • Loading branch information
erik1110 committed Oct 6, 2023
2 parents 5eca0ab + 00d8bd1 commit a200f81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ccip/tests/api/test_ccip.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def assert_data_structure(data, key):
assert 'bio' in item['zh']
assert 'bio' in item['en']


def assert_data_structure_session(data):
assert 'sessions' in data
sessions = data.get('sessions', [])
Expand All @@ -33,6 +34,7 @@ def assert_data_structure_session(data):
assert 'title' in session['zh']
assert 'description' in session['zh']


@pytest.mark.django_db
def test_data_structure(client):
response = client.get(endpoint, follow=True)
Expand Down

0 comments on commit a200f81

Please sign in to comment.