Skip to content
Snippets Groups Projects
Select Git revision
  • 95c3fe36410bd887806205026e7cc15350142839
  • master default protected
  • set-sast-config-1
  • v2.2.3
  • v2.2.2
  • v1.4.0
  • v1.3.0
  • v1.2.1
  • v1.2.0
  • v1.1.2
  • v1.1.1
11 results

OAuth2.pm

Blame
  • snap_test_new_report.py 1.29 KiB
    # -*- coding: utf-8 -*-
    # snapshottest: v1 - https://goo.gl/zC4yUc
    from __future__ import unicode_literals
    
    from snapshottest import Snapshot
    
    
    snapshots = Snapshot()
    
    snapshots['test_unauthorized 1'] = {
        'data': {
            'newReport': None
        },
        'errors': [
            {
                'locations': [
                    {
                        'column': 9,
                        'line': 3
                    }
                ],
                'message': 'User must be logged in to perform this mutation.'
            }
        ]
    }
    
    snapshots['test_full_report 1'] = {
        'data': {
            'newReport': {
                'report': {
                    'author': {
                        'extra': None,
                        'firstName': 'Winston',
                        'id': 'QXV0aG9yOjE=',
                        'lastName': 'Wolfe'
                    },
                    'body': 'I visited Tesla factory and talked with Elon Musk.',
                    'date': '2018-01-01 00:00:00+00:00',
                    'extra': None,
                    'id': '__STRIPPED__',
                    'otherParticipants': 'Elon Musk',
                    'ourParticipants': 'me',
                    'providedBenefit': 'nothing',
                    'published': '__STRIPPED__',
                    'receivedBenefit': 'Tesla Model S',
                    'title': 'Free Tesla'
                }
            }
        }
    }