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