mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
Adds test for pyinstaller indicator
This commit is contained in:
parent
2a461d6b39
commit
ed084f5413
@ -1,11 +1,13 @@
|
|||||||
import io
|
import io
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
from mitmproxy.utils import debug
|
from mitmproxy.utils import debug
|
||||||
|
|
||||||
|
|
||||||
def test_dump_system_info():
|
def test_dump_system_info():
|
||||||
|
setattr(sys, 'frozen', True)
|
||||||
assert debug.dump_system_info()
|
assert debug.dump_system_info()
|
||||||
|
|
||||||
with mock.patch('subprocess.check_output') as m:
|
with mock.patch('subprocess.check_output') as m:
|
||||||
|
Loading…
Reference in New Issue
Block a user