8000 Update test_workbook.py · cfmayden/server-client-python@81c795b · GitHub
[go: up one dir, main page]

Skip to content

Commit 81c795b

Browse files
committed
Update test_workbook.py
add back regex test format that I ... lost in merge?
1 parent 12ca9fe commit 81c795b

File tree

1 file changed

+2
-4
lines changed 8000

1 file changed

+2
-4
lines changed

test/test_workbook.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,10 +471,8 @@ def test_publish_with_hidden_view(self):
471471

472472
request_body = m._adapter.request_history[0]._request.body
473473
# order of attributes in xml is unspecified
474-
self.assertTrue(
475-
(b'<views><view hidden="true" name="GDP per capita" /></views>' in request_body)
476-
or
477-
(b'<views><view name="GDP per capita" hidden="true" /></views>' in request_body))
474+
self.assertTrue(re.search(rb'<views><view.*?hidden=\"true\".*?\/><\/views>', request_body))
475+
self.assertTrue(re.search(rb'<views><view.*?name=\"GDP per capita\".*?\/><\/views>', request_body))
478476

479477
def test_publish_async(self):
480478
self.server.version = '3.0'

0 commit comments

Comments
 (0)
0