This repository has been archived by the owner on May 16, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
615 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from . import case_import |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# -*- coding: utf-8 -*- | ||
{ | ||
'name': 'Broken module for lint tests', | ||
'license': 'AGPL-3', | ||
'author': 'Odoo Community Association (OCA)', | ||
'version': '1.0', | ||
'depends': [], | ||
'data': [], | ||
'test': [], | ||
'installable': False, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
import openerp | ||
|
||
from openerp import api | ||
from openerp.api import one | ||
|
||
from openerp.exceptions import Warning as UserError | ||
from openerp.exceptions import Warning as OtherName | ||
from openerp.exceptions import Warning | ||
from openerp.exceptions import AccessError as AE, \ | ||
ValidationError, Warning as UserError2 | ||
|
||
|
||
class UseUnusedImport(object): | ||
def method1(self): | ||
return UserError, OtherName, Warning, AE, ValidationError, UserError2 | ||
|
||
|
||
class ApiOne(object): | ||
@api.one | ||
def copy(): | ||
pass | ||
|
||
|
||
class One(object): | ||
@one | ||
def copy(): | ||
pass | ||
|
||
|
||
class OpenerpApiOne(object): | ||
@openerp.api.one | ||
def copy(): | ||
pass | ||
|
||
|
||
class WOApiOne(object): | ||
# copy without api.one decorator | ||
def copy(): | ||
pass | ||
|
||
|
||
class ApiOneMultiTogether(object): | ||
|
||
@api.multi | ||
@api.one | ||
def copy(): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Module broken | ||
=============== | ||
`````````` | ||
syntax error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
#!/usr/bin/python | ||
# -*- coding: latin-1 -*- | ||
from . import model | ||
from . import interpreter_wox | ||
# execution permission and interpreter done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Module broken | ||
=============== | ||
`````````` | ||
syntax error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/python | ||
# -*- coding: utf-8 -*- | ||
|
||
|
||
"Module python with interpreter but without execute permission." |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# -*- coding: utf-8 -*- | ||
from . import dummy_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# missing coding | ||
"""This file don't is add to main __init__ | ||
We need to validate that check py errors""" | ||
|
||
try: | ||
from openerp.exceptions import Warning | ||
except ImportError: | ||
pass | ||
|
||
|
||
def using_imported(): | ||
return Warning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:alt: License: AGPL-3 | ||
|
||
Test module | ||
=========== | ||
|
||
This module was written to check the test of rst syntax. | ||
This is a rst file without syntax error. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:alt: License: AGPL-3 | ||
|
||
Test module | ||
=========== | ||
|
||
This module was written to check the test of rst syntax. | ||
This is a rst file without syntax error. | ||
|
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.