コード例 #1
0
# -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals

from snapshottest import Snapshot


snapshots = Snapshot()

snapshots['TestCase01UserProfileAPITestCase::test_case status'] = 200

snapshots['TestCase01UserProfileAPITestCase::test_case body'] = [
    {
        'email': '*****@*****.**',
        'gender': '',
        'image_url': '',
        'name': 'username',
        'phone_number': ''
    }
]

snapshots['TestCase01UserProfileAPITestCase::test_case header_params'] = {
    'content-language': [
        'Content-Language',
        'en'
    ],
    'content-length': [
        '103',
        'Content-Length'
    ],
    'content-type': [
コード例 #2
0
def test_get_post_items_per_user(snapshot: Snapshot) -> None:
    bc_number = 150
    posts = load_test_posts()
    post_items_per_user = wtos.get_post_items_per_user(bc_number, posts)
    snapshot.assert_match(post_items_per_user)