@@ -1017,21 +1017,21 @@ async def test_pagerduty_alias(cli: CLI, echo_http_server: Tuple[int, List[Tuple
10171017@pytest .mark .asyncio
10181018async def test_welcome (cli : CLI ) -> None :
10191019 ctx = CLIContext (console_renderer = ConsoleRenderer .default_renderer ())
1020- result = await cli .execute_cli_command (f "welcome" , list_sink , ctx )
1020+ result = await cli .execute_cli_command ("welcome" , list_sink , ctx )
10211021 assert "Fix" in result [0 ][0 ]
10221022
10231023
10241024@pytest .mark .asyncio
10251025async def test_tip_of_the_day (cli : CLI ) -> None :
10261026 ctx = CLIContext (console_renderer = ConsoleRenderer .default_renderer ())
1027- result = await cli .execute_cli_command (f "totd" , list_sink , ctx )
1027+ result = await cli .execute_cli_command ("totd" , list_sink , ctx )
10281028 assert generic_tips [0 ].command_line in result [0 ][0 ]
10291029
10301030
10311031@pytest .mark .asyncio
10321032async def test_certificate (cli : CLI ) -> None :
10331033 result = await cli .execute_cli_command (
1034- f "certificate create --common-name foo.inventory.fix.security --dns-names bla --ip-addresses 1.2.3.4 --days-valid 1" ,
1034+ "certificate create --common-name foo.inventory.fix.security --dns-names bla --ip-addresses 1.2.3.4 --days-valid 1" ,
10351035 list_sink ,
10361036 )
10371037 # will create 2 files
@@ -1054,14 +1054,14 @@ async def test_execute_task(cli: CLI) -> None:
10541054
10551055 # execute-task in source position
10561056 source_result = await cli .execute_cli_command (
1057- f 'execute-task --command success_task --arg "--foo bla test"' , list_sink
1057+ 'execute-task --command success_task --arg "--foo bla test"' , list_sink
10581058 )
10591059 assert len (source_result [0 ]) == 1
10601060 assert source_result [0 ] == [{"result" : "done!" }]
10611061
10621062 # execute task in flow position: every incoming node creates a new task
10631063 flow_result = await cli .execute_cli_command (
1064- f 'search all limit 3 | execute-task --command success_task --arg "--t {{id} }"' , list_sink
1064+ 'search all limit 3 | execute-task --command success_task --arg "--t {id }"' , list_sink
10651065 )
10661066 assert len (flow_result [0 ]) == 3
10671067
@@ -1077,15 +1077,15 @@ async def history_count(cmd: str) -> int:
10771077 five_min_later = utc_str (now + timedelta (minutes = 5 ))
10781078 assert await history_count ("history" ) == 112 # 112 inserts for the filled graph db
10791079 assert await history_count (f"history --after { five_min_ago } " ) == 112
1080- assert await history_count (f "history --after 5m" ) == 112
1080+ assert await history_count ("history --after 5m" ) == 112
10811081 assert await history_count (f"history --after { five_min_later } " ) == 0
10821082 assert await history_count (f"history --before { five_min_ago } " ) == 0
1083- assert await history_count (f "history --before 5m" ) == 0
1084- assert await history_count (f "history --change node_created" ) == 112
1085- assert await history_count (f "history --change node_updated" ) == 0
1086- assert await history_count (f "history --change node_deleted" ) == 0
1087- assert await history_count (f "history --change node_created --change node_updated --change node_deleted" ) == 112
1088- assert await history_count (f "history is(foo)" ) == 10
1083+ assert await history_count ("history --before 5m" ) == 0
1084+ assert await history_count ("history --change node_created" ) == 112
1085+ assert await history_count ("history --change node_updated" ) == 0
1086+ assert await history_count ("history --change node_deleted" ) == 0
1087+ assert await history_count ("history --change node_created --change node_updated --change node_deleted" ) == 112
1088+ assert await history_count ("history is(foo)" ) == 10
10891089 # combine all selectors
10901090 assert await history_count (f"history --after 5m --before { five_min_later } --change node_created is(foo)" ) == 10
10911091
@@ -1429,12 +1429,12 @@ async def check(streamer: JsStream) -> None:
14291429
14301430 # search with aggregation does not export anything
14311431 with pytest .raises (Exception ):
1432- await sync_and_check (f "search all | aggregate kind:sum(1) | db sync sqlite --database foo" )
1432+ await sync_and_check ("search all | aggregate kind:sum(1) | db sync sqlite --database foo" )
14331433
14341434 # define all parameters and check the connection string
14351435 with pytest .raises (Exception ) as ex :
14361436 await sync_and_check (
1437- f "db sync sqlite --database db --host bla --port 1234 --user test --password check --arg foo=bla foo2=bla2" ,
1437+ "db sync sqlite --database db --host bla --port 1234 --user test --password check --arg foo=bla foo2=bla2" ,
14381438 expected_table_count = 11 ,
14391439 )
14401440 assert "sqlite://test:check@bla:1234" in str (ex .value )
0 commit comments