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