Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yi Gu committed Dec 17, 2024
1 parent 1f7c0b2 commit 7793a18
Show file tree
Hide file tree
Showing 3 changed files with 2,824 additions and 10 deletions.
16 changes: 8 additions & 8 deletions azure-quantum/azure/quantum/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def get_job(self, job_id: str) -> Job:
def list_jobs(
self,
name_match: Optional[str] = None,
job_type: Optional[str]= None,
job_type: Optional[list[str]]= None,
provider: Optional[list[str]]= None,
target: Optional[list[str]]= None,
status: Optional[list[JobStatus]] = None,
Expand Down Expand Up @@ -595,12 +595,12 @@ def get_quotas(self) -> List[Dict[str, Any]]:

def list_top_level_items(
self,
name_match: Optional[str] = None,
item_type: Optional[str]= None,
job_type: Optional[str]= None,
provider: Optional[list[str]]= None,
target: Optional[list[str]]= None,
status: Optional[list[JobStatus]] = None,
name_match: Optional[str] = None,
item_type: Optional[list[str]]= None,
job_type: Optional[list[str]]= None,
provider: Optional[list[str]]= None,
target: Optional[list[str]]= None,
status: Optional[list[JobStatus]] = None,
created_after: Optional[datetime] = None,
created_before: Optional[datetime] = None,
) -> List[Union[Job, Session]]:
Expand Down Expand Up @@ -925,7 +925,7 @@ def _create_filter(self,

item_type_filter = " or ".join([f"ItemType eq '{iid}'" for iid in item_type])

filter_string += f"${item_type_filter})"
filter_string += f"{item_type_filter})"
has_filter = True

if (job_type is not None and job_type.count != 0):
Expand Down
Loading

0 comments on commit 7793a18

Please sign in to comment.