| Conditions | 1 |
| Total Lines | 17 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 47 | def insert(self): |
||
| 48 | g2 = self._session.query(models.Group).\ |
||
| 49 | filter(models.Group.group_name == 'managers').one() |
||
| 50 | |||
| 51 | lawrence = models.User() |
||
| 52 | lawrence.display_name = 'Lawrence L.' |
||
| 53 | lawrence.email = '[email protected]' |
||
| 54 | lawrence.password = 'foobarbaz' |
||
| 55 | self._session.add(lawrence) |
||
| 56 | g2.users.append(lawrence) |
||
| 57 | |||
| 58 | bob = models.User() |
||
| 59 | bob.display_name = 'Bob i.' |
||
| 60 | bob.email = '[email protected]' |
||
| 61 | bob.password = 'foobarbaz' |
||
| 62 | self._session.add(bob) |
||
| 63 | g2.users.append(bob) |
||
| 64 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.