Skip to content

Commit ba8d98b

Browse files
committed
adjust post-merge
1 parent a094f9b commit ba8d98b

3 files changed

Lines changed: 2 additions & 11 deletions

File tree

tests/objects/test_agent.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,6 @@ async def test_get_preferred_executor_empty(self, ability, executor):
210210
test_ability = ability(ability_id='123', executors=[test_executor])
211211
assert await agent.get_preferred_executor(test_ability) is None
212212

213-
async def test_kill(self):
214-
agent = Agent(paw='123', sleep_min=5, group='red', sleep_max=5, watchdog=0, executors=['cmd'],
215-
platform='windows', trusted=True)
216-
await agent.kill()
217-
assert agent.watchdog == 1
218-
assert agent.sleep_min == 120
219-
assert agent.sleep_max == 120
220-
221213
async def test_bootstrap(self, ability, executor, data_svc):
222214
# Set empty executor list to exit agent.task function immmediately without mocking
223215
agent = Agent(paw='123', sleep_min=5, group='red', sleep_max=5, watchdog=0, executors=[],

tests/services/test_data_svc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ def _mock_iglob(pathname, *, root_dir=None, dir_fd=None, recursive=False, includ
495495
mock_load_yaml_file.assert_any_call(Planner, 'mockplannerforplugin.yml', data_svc.Access.RED)
496496
mock_load_yaml_file.assert_any_call(Source, 'mocksourceforplugin.yml', data_svc.Access.RED)
497497
mock_add_special_payload.assert_called_once_with('mockextension', 'mockextval')
498+
498499
@mock.patch.object(logging.Logger, 'warn')
499500
@mock.patch.object(BaseWorld, 'strip_yml', wraps=strip_ability_yaml)
500501
async def test_load_ability_file(self, mock_strip_yml, mock_warn, data_svc):

tests/web_server/test_core_endpoints.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,7 @@ async def test_command_overwrite_failure(aiohttp_client, authorized_cookies):
129129
type='python_module',
130130
version='3.11.0'))))
131131

132-
assert resp.status == HTTPStatus.OK
133-
config_dict = await resp.json()
134-
assert config_dict.get('requirements', dict()).get('go', dict()).get('command') == 'go version'
132+
assert resp.status == HTTPStatus.BAD_REQUEST
135133

136134

137135
async def test_upload_file(aiohttp_client):

0 commit comments

Comments
 (0)