Skip to content
Snippets Groups Projects
Select Git revision
  • 651bcdd72d99186c9e32c724551058243ea95474
  • master default protected
  • 2024-11
  • oprava-babel
  • 2024-1
  • 2023
  • 2022
7 results

App.js

Blame
  • snap_test_viewer.py 956 B
    # -*- coding: utf-8 -*-
    # snapshottest: v1 - https://goo.gl/zC4yUc
    from __future__ import unicode_literals
    
    from snapshottest import Snapshot
    
    
    snapshots = Snapshot()
    
    snapshots['test_unauthenticated 1'] = {
        'data': {
            'viewer': None
        }
    }
    
    snapshots['test_authenticated 1'] = {
        'data': {
            'viewer': {
                'email': 'winston@wolfe.com',
                'extra': '{"caliber": 45}',
                'firstName': 'Winston',
                'id': 'VXNlcjox',
                'isAuthor': True,
                'lastName': 'Wolfe',
                'openidUid': 'TheWolf'
            }
        }
    }
    
    snapshots['test_wrong_header 1'] = {
        'errors': [
            {
                'message': 'Wrong Authorization header. Expected: "Bearer <token>"'
            }
        ]
    }
    
    snapshots['test_wrong_token 1'] = {
        'errors': [
            {
                'message': 'Invalid Token.'
            }
        ]
    }
    
    snapshots['test_unknown_user 1'] = {
        'data': {
            'viewer': None
        }
    }