mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
minor fixes
This commit is contained in:
parent
79896e23b7
commit
adfccb90a5
@ -39,15 +39,18 @@ def console(monkeypatch):
|
|||||||
return m
|
return m
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.asyncio
|
||||||
def test_integration(tdata, console):
|
def test_integration(tdata, console):
|
||||||
console.type(f":view.flows.load {tdata.path('mitmproxy/data/dumpfile-7.mitm')}<enter>")
|
console.type(f":view.flows.load {tdata.path('mitmproxy/data/dumpfile-7.mitm')}<enter>")
|
||||||
console.type("<enter><tab><tab>")
|
console.type("<enter><tab><tab>")
|
||||||
console.type("<space><tab><tab>") # view second flow
|
console.type("<space><tab><tab>") # view second flow
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.asyncio
|
||||||
def test_options_home_end(console):
|
def test_options_home_end(console):
|
||||||
console.type("O<home><end>")
|
console.type("O<home><end>")
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.asyncio
|
||||||
def test_keybindings_home_end(console):
|
def test_keybindings_home_end(console):
|
||||||
console.type("K<home><end>")
|
console.type("K<home><end>")
|
@ -14,6 +14,7 @@ export interface OptionsState {
|
|||||||
ciphers_server: string | undefined
|
ciphers_server: string | undefined
|
||||||
client_certs: string | undefined
|
client_certs: string | undefined
|
||||||
client_replay: string[]
|
client_replay: string[]
|
||||||
|
client_replay_concurrency: number
|
||||||
command_history: boolean
|
command_history: boolean
|
||||||
confdir: string
|
confdir: string
|
||||||
connection_strategy: string
|
connection_strategy: string
|
||||||
@ -99,6 +100,7 @@ export const defaultState: OptionsState = {
|
|||||||
ciphers_server: undefined,
|
ciphers_server: undefined,
|
||||||
client_certs: undefined,
|
client_certs: undefined,
|
||||||
client_replay: [],
|
client_replay: [],
|
||||||
|
client_replay_concurrency: 1,
|
||||||
command_history: true,
|
command_history: true,
|
||||||
confdir: "~/.mitmproxy",
|
confdir: "~/.mitmproxy",
|
||||||
connection_strategy: "eager",
|
connection_strategy: "eager",
|
||||||
|
Loading…
Reference in New Issue
Block a user