• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

andgineer / api-db-prototype / 8766121206

20 Apr 2024 03:45PM UTC coverage: 83.956% (-2.9%) from 86.892%
8766121206

push

github

andgineer
upgrade reqs

2 of 2 new or added lines in 2 files covered. (100.0%)

89 existing lines in 23 files now uncovered.

1057 of 1259 relevant lines covered (83.96%)

0.84 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

63.41
/src/openapi_server/models/user.py
1
from datetime import date, datetime  # noqa: F401
1✔
2

3
from typing import List, Dict  # noqa: F401
1✔
4

5
from openapi_server.models.base_model import Model
1✔
6
from openapi_server.models.user_group import UserGroup
1✔
7
from openapi_server import util
1✔
8

9
from openapi_server.models.user_group import UserGroup  # noqa: E501
1✔
10

11
class User(Model):
1✔
12
    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13

14
    Do not edit the class manually.
15
    """
16

17
    def __init__(self, group=None, email=None, name=None, id=None):  # noqa: E501
1✔
18
        """User - a model defined in OpenAPI
19

20
        :param group: The group of this User.  # noqa: E501
21
        :type group: UserGroup
22
        :param email: The email of this User.  # noqa: E501
23
        :type email: str
24
        :param name: The name of this User.  # noqa: E501
25
        :type name: str
26
        :param id: The id of this User.  # noqa: E501
27
        :type id: str
28
        """
UNCOV
29
        self.openapi_types = {
×
30
            'group': UserGroup,
31
            'email': str,
32
            'name': str,
33
            'id': str
34
        }
35

UNCOV
36
        self.attribute_map = {
×
37
            'group': 'group',
38
            'email': 'email',
39
            'name': 'name',
40
            'id': 'id'
41
        }
42

43
        self._group = group
×
44
        self._email = email
×
45
        self._name = name
×
46
        self._id = id
×
47

48
    @classmethod
1✔
49
    def from_dict(cls, dikt) -> 'User':
1✔
50
        """Returns the dict as a model
51

52
        :param dikt: A dict.
53
        :type: dict
54
        :return: The User of this User.  # noqa: E501
55
        :rtype: User
56
        """
57
        return util.deserialize_model(dikt, cls)
×
58

59
    @property
1✔
60
    def group(self) -> UserGroup:
1✔
61
        """Gets the group of this User.
62

63

64
        :return: The group of this User.
65
        :rtype: UserGroup
66
        """
67
        return self._group
×
68

69
    @group.setter
1✔
70
    def group(self, group: UserGroup):
1✔
71
        """Sets the group of this User.
72

73

74
        :param group: The group of this User.
75
        :type group: UserGroup
76
        """
77

78
        self._group = group
×
79

80
    @property
1✔
81
    def email(self) -> str:
1✔
82
        """Gets the email of this User.
83

84

85
        :return: The email of this User.
86
        :rtype: str
87
        """
88
        return self._email
×
89

90
    @email.setter
1✔
91
    def email(self, email: str):
1✔
92
        """Sets the email of this User.
93

94

95
        :param email: The email of this User.
96
        :type email: str
97
        """
98

99
        self._email = email
×
100

101
    @property
1✔
102
    def name(self) -> str:
1✔
103
        """Gets the name of this User.
104

105

106
        :return: The name of this User.
107
        :rtype: str
108
        """
109
        return self._name
×
110

111
    @name.setter
1✔
112
    def name(self, name: str):
1✔
113
        """Sets the name of this User.
114

115

116
        :param name: The name of this User.
117
        :type name: str
118
        """
119

120
        self._name = name
×
121

122
    @property
1✔
123
    def id(self) -> str:
1✔
124
        """Gets the id of this User.
125

126

127
        :return: The id of this User.
128
        :rtype: str
129
        """
130
        return self._id
×
131

132
    @id.setter
1✔
133
    def id(self, id: str):
1✔
134
        """Sets the id of this User.
135

136

137
        :param id: The id of this User.
138
        :type id: str
139
        """
140

141
        self._id = id
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc