Skip to content

Commit b803918

Browse files
authored
ci_: pytest-lint correct target pr branch (#6230)
* ci_: pytest-lint correct target pr branch * fix_: format issues
1 parent d291204 commit b803918

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/pytest-lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Pytest Lint
33
on:
44
pull_request:
55
branches:
6-
- master
6+
- develop
7+
- release/**
78
push:
89
branches:
910
- "test-linting"

tests-functional/clients/status_backend.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,9 @@ def wait_for_healthy(self, timeout=10):
9393
self.health(enable_logging=False)
9494
logging.info(f"StatusBackend is healthy after {time.time() - start_time} seconds")
9595
return
96-
except Exception as e:
96+
except Exception:
9797
time.sleep(0.1)
98-
raise TimeoutError(
99-
f"StatusBackend was not healthy after {timeout} seconds")
98+
raise TimeoutError(f"StatusBackend was not healthy after {timeout} seconds")
10099

101100
def health(self, enable_logging=True):
102101
return self.api_request("health", data=[], url=self.base_url, enable_logging=enable_logging)
@@ -139,7 +138,7 @@ def init_status_backend(self, data_dir=USER_DIR):
139138
return self.api_valid_request(method, data)
140139

141140
def _set_proxy_credentials(self, data):
142-
if not "STATUS_BUILD_PROXY_USER" in os.environ:
141+
if "STATUS_BUILD_PROXY_USER" not in os.environ:
143142
return data
144143

145144
user = os.environ["STATUS_BUILD_PROXY_USER"]

tests-functional/tests/test_init_status_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_init_app(self):
2424

2525
assert backend_client is not None
2626
backend_client.verify_json_schema(
27-
backend_client.wait_for_login(),
27+
backend_client.wait_for_login(),
2828
"signal_node_login",
2929
)
3030
backend_client.verify_json_schema(

0 commit comments

Comments
 (0)