File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ async def info(self) -> JobsInfo:
1414 result = await self ._client .get ("jobs/info" )
1515 return JobsInfo .from_dict (result .data )
1616
17- async def options (self , options : JobsOptions ) -> None :
17+ async def set_options (self , options : JobsOptions ) -> None :
1818 """Set Jobs options."""
1919 await self ._client .post ("jobs/options" , json = options .to_dict ())
2020
Original file line number Diff line number Diff line change @@ -40,13 +40,13 @@ async def test_jobs_info(
4040 assert info .jobs [1 ].errors [0 ].message == "Invalid password for backup cfddca18"
4141
4242
43- async def test_jobs_options (
43+ async def test_jobs_set_options (
4444 responses : aioresponses , supervisor_client : SupervisorClient
4545) -> None :
46- """Test jobs options API."""
46+ """Test jobs set options API."""
4747 responses .post (f"{ SUPERVISOR_URL } /jobs/options" , status = 200 )
4848 assert (
49- await supervisor_client .jobs .options (
49+ await supervisor_client .jobs .set_options (
5050 JobsOptions (ignore_conditions = [JobCondition .FREE_SPACE ])
5151 )
5252 is None
You can’t perform that action at this time.
0 commit comments