Skip to content

Commit 59e5808

Browse files
committed
chore: lint fix
1 parent 70994c0 commit 59e5808

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

tests/py/integration/entity.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def create_entity(self, kwargs=None):
6262

6363
def list_entities_test(self):
6464
entity = self.create_entity()
65-
self.assertIn(entity[ENTITY_ID_KEY], [e[ENTITY_ID_KEY] for e in self.endpoints.list(query=self.entities_selector())])
65+
self.assertIn(entity[ENTITY_ID_KEY],
66+
[e[ENTITY_ID_KEY] for e in self.endpoints.list(query=self.entities_selector())])
6667

6768
def get_entity_by_id_test(self):
6869
entity = self.create_entity()
@@ -78,7 +79,8 @@ def create_entity_test(self):
7879
def delete_entity_test(self):
7980
entity = self.create_entity()
8081
self.endpoints.delete(entity[ENTITY_ID_KEY])
81-
self.assertNotIn(entity[ENTITY_ID_KEY], [e[ENTITY_ID_KEY] for e in self.endpoints.list(query=self.entities_selector())])
82+
self.assertNotIn(entity[ENTITY_ID_KEY],
83+
[e[ENTITY_ID_KEY] for e in self.endpoints.list(query=self.entities_selector())])
8284

8385
def update_entity_test(self):
8486
entity = self.create_entity()

tests/py/integration/test_jobs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def get_default_config(self):
3838
now_time = datetime.datetime.today().strftime(DATETIME_FORMAT)
3939
return {"name": f"{JOB_NAME_PREFIX} {now_time}"}
4040

41-
def get_compute_params(self, nodes=DEFAULT_NODES, notify=DEFAULT_NOTIFY, ppn=DEFAULT_PPN, queue=DEFAULT_QUEUE, time_limit=DEFAULT_TIME_LIMIT):
41+
def get_compute_params(self, nodes=DEFAULT_NODES, notify=DEFAULT_NOTIFY, ppn=DEFAULT_PPN, queue=DEFAULT_QUEUE,
42+
time_limit=DEFAULT_TIME_LIMIT):
4243
return {"nodes": nodes, "notify": notify, "ppn": ppn, "queue": queue, "timeLimit": time_limit}
4344

4445
def test_list_jobs(self):

tests/py/unit/test_httpBase.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def test_preamble_version(self):
3636

3737
@mock.patch("requests.sessions.Session.request")
3838
def test_raise_http_error(self, mock_request):
39-
mock_request.return_value = self.mock_response(EMPTY_CONTENT, HTTP_STATUS_UNAUTHORIZED, reason=HTTP_REASON_UNAUTHORIZED)
39+
mock_request.return_value = self.mock_response(EMPTY_CONTENT, HTTP_STATUS_UNAUTHORIZED,
40+
reason=HTTP_REASON_UNAUTHORIZED)
4041
with self.assertRaises(HTTPError):
4142
conn = Connection(self.host, self.port, version=API_VERSION_1, secure=True)
4243
conn.request("POST", "login", data={"username": EMPTY_USERNAME, "password": EMPTY_PASSWORD})

0 commit comments

Comments
 (0)