minor fixes

This commit is contained in:
Maximilian Hils 2021-10-08 17:36:16 +02:00
parent 79896e23b7
commit adfccb90a5
2 changed files with 6 additions and 1 deletions

View File

@ -39,15 +39,18 @@ def console(monkeypatch):
return m
@pytest.mark.asyncio
def test_integration(tdata, console):
console.type(f":view.flows.load {tdata.path('mitmproxy/data/dumpfile-7.mitm')}<enter>")
console.type("<enter><tab><tab>")
console.type("<space><tab><tab>") # view second flow
@pytest.mark.asyncio
def test_options_home_end(console):
console.type("O<home><end>")
@pytest.mark.asyncio
def test_keybindings_home_end(console):
console.type("K<home><end>")
console.type("K<home><end>")

View File

@ -14,6 +14,7 @@ export interface OptionsState {
ciphers_server: string | undefined
client_certs: string | undefined
client_replay: string[]
client_replay_concurrency: number
command_history: boolean
confdir: string
connection_strategy: string
@ -99,6 +100,7 @@ export const defaultState: OptionsState = {
ciphers_server: undefined,
client_certs: undefined,
client_replay: [],
client_replay_concurrency: 1,
command_history: true,
confdir: "~/.mitmproxy",
connection_strategy: "eager",