File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- import datetime as dt
21import unittest
32
43import requests_mock
54
65import tableauserverclient as TSC
6+ from tableauserverclient .datetime_helpers import parse_datetime
77from ._utils import read_xml_asset
88
99GET_FAVORITES_XML = "favorites_get.xml"
@@ -57,8 +57,8 @@ def test_get(self) -> None:
5757 assert collection .total_item_count == 3
5858 assert collection .permissioned_item_count == 2
5959 assert collection .visibility == "Private"
60- assert collection .created_at == dt . datetime . fromisoformat ("2016-08-11T21:22:40Z" )
61- assert collection .updated_at == dt . datetime . fromisoformat ("2016-08-11T21:34:17Z" )
60+ assert collection .created_at == parse_datetime ("2016-08-11T21:22:40Z" )
61+ assert collection .updated_at == parse_datetime ("2016-08-11T21:34:17Z" )
6262
6363 def test_add_favorite_workbook (self ) -> None :
6464 response_xml = read_xml_asset (ADD_FAVORITE_WORKBOOK_XML )
You can’t perform that action at this time.
0 commit comments