1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
######################################################################
#
# File: test/unit/_cli/test_shell.py
#
# Copyright 2023 Backblaze Inc. All Rights Reserved.
#
# License https://www.backblaze.com/using_b2_code.html
#
######################################################################
import os
from unittest import mock
from b2._internal._cli import shell
@mock.patch.dict(os.environ, {"SHELL": "/bin/bash"})
def test_detect_shell():
assert shell.detect_shell() == 'bash'
|