8000 Adding test for workbook name · ivanB1975/server-client-python@f7fd213 · GitHub
[go: up one dir, main page]

Skip to content

Commit f7fd213

Browse files
ivan.baldinotti@digitecgalaxus.chivan.baldinotti@digitecgalaxus.ch
ivan.baldinotti@digitecgalaxus.ch
authored and
ivan.baldinotti@digitecgalaxus.ch
committed
Adding test for workbook name
1 parent ffcb786 commit f7fd213

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/test_job.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,11 @@ def test_get_job_workbook_id(self) -> None:
120120
m.get(f"{self.baseurl}/{job_id}", text=response_xml)
121121
job = self.server.jobs.get_by_id(job_id)
122122
self.assertEqual(job.workbook_id, "5998aaaf-1abe-4d38-b4d9-bc53e85bdd13")
123+
124+
def test_get_job_workbook_name(self) -> None:
125+
response_xml = read_xml_asset(GET_BY_ID_WORKBOOK)
126+
job_id = "bb1aab79-db54-4e96-9dd3-461d8f081d08"
127+
with requests_mock.mock() as m:
128+
m.get(f"{self.baseurl}/{job_id}", text=response_xml)
129+
job = self.server.jobs.get_by_id(job_id)
130+
self.assertEqual(job.workbook_name, "Superstore")

0 commit comments

Comments
 (0)
0