Skip to content

Commit d8e2503

Browse files
committed
# Removing Portfolios as they are only available for users in an Enterprise or Business plan.
1 parent adddcb1 commit d8e2503

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

tests/test_all_fields.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ def test_run(self):
5959
- Verify no unexpected streams were replicated
6060
- Verify that more than just the automatic fields are replicated for each stream
6161
"""
62-
expected_streams = self.expected_streams()
62+
# Removing Portfolios as they are only available for users in an Enterprise or Business plan.
63+
expected_streams = self.expected_streams() - {"portfolios"}
6364

6465
# Instantiate connection
6566
conn_id = connections.ensure_connection(self)

tests/test_automatic_fields.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ def test_run(self):
1919
- Verify that all replicated records have unique primary key values.
2020
"""
2121
conn_id = connections.ensure_connection(self)
22-
expected_streams = self.expected_streams()
22+
# Removing Portfolios as they are only available for users in an Enterprise or Business plan.
23+
expected_streams = self.expected_streams() - {"portfolios"}
2324

2425
# Run check mode
2526
found_catalogs = self.run_and_verify_check_mode(conn_id)

tests/test_bookmarks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def test_run(self):
1515
# running sync with multiple date timestamps accross different streams due to differences in bookmark values
1616
self.run_test("2021-11-09T00:00:00Z", "2023-11-10T00:00:00Z", {"projects",})
1717
self.run_test("2023-11-28T00:00:00Z", "2023-11-30T00:00:00Z", {"subtasks",})
18-
self.run_test("2019-01-28T00:00:00Z", "2023-11-30T00:00:00Z", self.expected_streams() - {"subtasks","projects"})
18+
# Removing Portfolios as they are only available for users in an Enterprise or Business plan.
19+
self.run_test("2019-01-28T00:00:00Z", "2023-11-30T00:00:00Z", self.expected_streams() - {"subtasks","projects","portfolios"})
1920

2021

2122
def run_test(self, start_date_1, start_date_2, streams):

tests/test_start_date.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ def test_run(self):
1414
# running sync with multiple date timestamps accross different streams due to differences in bookmark values
1515
self.run_test("2021-11-09T00:00:00Z", "2023-11-10T00:00:00Z", {"projects",})
1616
self.run_test("2023-11-28T00:00:00Z", "2023-11-30T00:00:00Z", {"subtasks",})
17-
self.run_test("2019-01-28T00:00:00Z", "2023-11-30T00:00:00Z", self.expected_streams() - {"subtasks","projects"})
17+
# Removing Portfolios as they are only available for users in an Enterprise or Business plan.
18+
self.run_test("2019-01-28T00:00:00Z", "2023-11-30T00:00:00Z", self.expected_streams() - {"subtasks","projects","portfolios"})
1819

1920
def run_test(self, start_date_1, start_date_2, streams):
2021
"""

0 commit comments

Comments
 (0)