odex25_standard/odex-event/event_custom/models/quality_test.py

22 lines
696 B
Python

# -*- coding: utf-8 -*-
from odoo import models, fields
import sys # F401: unused import
class QualityTest(models.Model):
_name = 'quality.test'
_description = 'Code Quality Test'
name = fields.Char('Name', required=True)
# E501: line too long
description = fields.Text('Description', help='This is an extremely long help text that definitely exceeds the maximum recommended line length of 120 characters for PEP8 compliance')
# F821: undefined variable
def broken_method(self):
return undefined_var + 10
# W293: blank line contains whitespace
# E225: missing whitespace around operator
count=fields.Integer(default=0)