Skip to content

Commit

Permalink
Merge pull request pycontw#3 from erik1110/feature/unit_test
Browse files Browse the repository at this point in the history
[feat] flake8
  • Loading branch information
erik1110 committed Sep 16, 2023
2 parents cf67ff5 + a136a0e commit 53d0cab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ccip/tests/api/test_ccip.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

endpoint = "/ccip/"


def assert_data_structure(data, key):
assert key in data
items = data.get(key, [])
Expand All @@ -16,6 +17,7 @@ def assert_data_structure(data, key):
assert 'bio' in item['zh']
assert 'bio' in item['en']


@pytest.mark.django_db
def test_data_structure(client):
response = client.get(endpoint, follow=True)
Expand All @@ -27,6 +29,7 @@ def test_data_structure(client):
assert_data_structure(data, 'rooms')
assert_data_structure(data, 'speakers')


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

0 comments on commit 53d0cab

Please sign in to comment.