Skip to content

Commit 6aa8eec

Browse files
committed
[tests:fix] Execute command DB operations while SSH is mocked
1 parent 109f28e commit 6aa8eec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • openwisp_controller/connection/tests

openwisp_controller/connection/tests/pytest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ async def _create_command(self, device_conn):
4848
mocked_exec_command.return_value = self._exec_command_return_value(
4949
stdout="test"
5050
)
51-
await database_sync_to_async(command.save)()
52-
await database_sync_to_async(command.refresh_from_db)()
51+
await database_sync_to_async(command.save)()
52+
await database_sync_to_async(command.refresh_from_db)()
5353
return command
5454

5555
def _get_expected_response(self, command):

0 commit comments

Comments
 (0)