mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] pytest warnings
Backport of d7a78f89d0
- `choice` is not a proper type
- markers should be declared
This commit is contained in:
parent
0334225114
commit
3b8d392548
@ -86,7 +86,7 @@ def pytest_addoption(parser):
|
|||||||
parser.addoption('--coverage', action='store_true')
|
parser.addoption('--coverage', action='store_true')
|
||||||
|
|
||||||
parser.addoption(
|
parser.addoption(
|
||||||
'--tunnel', action="store", type="choice", choices=['', 'ngrok', 'localtunnel'], default='',
|
'--tunnel', action="store", choices=['', 'ngrok', 'localtunnel'], default='',
|
||||||
help="Which tunneling method to use to expose the local Odoo server "
|
help="Which tunneling method to use to expose the local Odoo server "
|
||||||
"to hook up github's webhook. ngrok is more reliable, but "
|
"to hook up github's webhook. ngrok is more reliable, but "
|
||||||
"creating a free account is necessary to avoid rate-limiting "
|
"creating a free account is necessary to avoid rate-limiting "
|
||||||
@ -104,6 +104,11 @@ def pytest_configure(config):
|
|||||||
"markers",
|
"markers",
|
||||||
"expect_log_errors(reason): allow and require tracebacks in the log",
|
"expect_log_errors(reason): allow and require tracebacks in the log",
|
||||||
)
|
)
|
||||||
|
config.addinivalue_line(
|
||||||
|
"markers",
|
||||||
|
"defaultstatuses: use the statuses `default` rather than `ci/runbot,legal/cla`",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def pytest_unconfigure(config):
|
def pytest_unconfigure(config):
|
||||||
if not is_manager(config):
|
if not is_manager(config):
|
||||||
|
Loading…
Reference in New Issue
Block a user