Browse Source

fix tests

Bastien Sevajol 6 years ago
parent
commit
0f79d8589a
1 changed files with 5 additions and 5 deletions
  1. 5 5
      tests/func/fake_api/common.py

+ 5 - 5
tests/func/fake_api/common.py View File

51
          'get': {
51
          'get': {
52
            'description': 'General information about this API.',
52
            'description': 'General information about this API.',
53
            'responses': {200: {
53
            'responses': {200: {
54
-               'description': 200,
54
+               'description': '200',
55
                'schema': {'$ref': '#/definitions/AboutResponseSchema'}}}}}),
55
                'schema': {'$ref': '#/definitions/AboutResponseSchema'}}}}}),
56
       ('/users', {
56
       ('/users', {
57
          'get': {
57
          'get': {
58
            'description': 'Obtain users list.',
58
            'description': 'Obtain users list.',
59
            'responses': {200: {
59
            'responses': {200: {
60
-               'description': 200,
60
+               'description': '200',
61
                'schema': {'$ref': '#/definitions/ListsUserSchema'}}}}}),
61
                'schema': {'$ref': '#/definitions/ListsUserSchema'}}}}}),
62
       ('/users/{id}', {
62
       ('/users/{id}', {
63
          'delete': {
63
          'delete': {
67
                            'required': True,
67
                            'required': True,
68
                            'type': 'integer'}],
68
                            'type': 'integer'}],
69
            'responses': {204: {
69
            'responses': {204: {
70
-               'description': 204,
70
+               'description': '204',
71
                'schema': {'$ref': '#/definitions/NoContentSchema'}}}},
71
                'schema': {'$ref': '#/definitions/NoContentSchema'}}}},
72
          'get': {
72
          'get': {
73
              'description': 'Obtain one user',
73
              'description': 'Obtain one user',
76
                              'required': True,
76
                              'required': True,
77
                              'type': 'integer'}],
77
                              'type': 'integer'}],
78
              'responses': {200: {
78
              'responses': {200: {
79
-                 'description': 200,
79
+                 'description': '200',
80
                  'schema': {'$ref': '#/definitions/UserSchema'}}}}}),
80
                  'schema': {'$ref': '#/definitions/UserSchema'}}}}}),
81
       ('/users/', {
81
       ('/users/', {
82
          'post': {
82
          'post': {
85
                              'name': 'body',
85
                              'name': 'body',
86
                              'schema': {'$ref': '#/definitions/UserSchema'}}],
86
                              'schema': {'$ref': '#/definitions/UserSchema'}}],
87
              'responses': {200: {
87
              'responses': {200: {
88
-                 'description': 200,
88
+                 'description': '200',
89
                  'schema': {'$ref': '#/definitions/UserSchema'}}}}})]),
89
                  'schema': {'$ref': '#/definitions/UserSchema'}}}}})]),
90
  'swagger': '2.0',
90
  'swagger': '2.0',
91
  'tags': []
91
  'tags': []