File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
tests/airflow_ctl/ctl/commands Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ docs = [
113
113
]
114
114
dev = [
115
115
" apache-airflow-ctl[dev]" ,
116
+ " apache-airflow-devel-common" ,
116
117
]
117
118
codegen = [
118
119
" datamodel-code-generator[http]==0.28.2" ,
@@ -156,7 +157,9 @@ addopts = [
156
157
" --disable-warnings" ,
157
158
" --asyncio-mode=strict" ,
158
159
]
159
-
160
+ markers = [
161
+ " flaky(reruns, reruns_delay): retry test on failure using pytest-rerunfailures"
162
+ ]
160
163
norecursedirs = [
161
164
" .eggs" ,
162
165
]
Original file line number Diff line number Diff line change 22
22
from unittest import mock
23
23
from unittest .mock import patch
24
24
25
+ import pytest
25
26
from platformdirs import user_config_path
26
27
27
28
from airflowctl .api .client import ClientKind
@@ -39,6 +40,7 @@ class TestCliAuthCommands:
39
40
@patch .dict (os .environ , {"AIRFLOW_CLI_TOKEN" : "TEST_TOKEN" })
40
41
@patch .dict (os .environ , {"AIRFLOW_CLI_ENVIRONMENT" : "TEST_AUTH_LOGIN" })
41
42
@patch ("airflowctl.api.client.keyring" )
43
+ @pytest .mark .flaky (reruns = 3 , reruns_delay = 10 )
42
44
def test_login (self , mock_keyring , api_client_maker ):
43
45
api_client = api_client_maker (
44
46
path = "/auth/token/cli" ,
You can’t perform that action at this time.
0 commit comments