Skip to content

Commit 830da3d

Browse files
dsprayberryluandy64skuttleman
committed
Missed a unit-test
Co-authored-by: Andy Lu <[email protected]> Co-authored-by: Ben Allred <[email protected]>
1 parent 809c6b2 commit 830da3d

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

tests/unittests/test_stream.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,19 @@ def test_multiple_child(self, mock_write_bookmark):
145145
self.assertIn(mock_write_bookmark.mock_calls[1], expected_calls)
146146
self.assertIn(mock_write_bookmark.mock_calls[2], expected_calls)
147147

148-
def test_nested_child(self, mock_write_bookmark):
149-
"""
150-
Test for the stream if the nested child is selected
151-
"""
152-
test_stream = Projects()
153-
test_stream.write_bookmarks("projects", ["project_cards"],
154-
"2022-04-01T00:00:00Z", "org/test-repo", self.state)
155-
156-
# Verify `write_bookmark` is called for all selected streams
157-
self.assertEqual(mock_write_bookmark.call_count, 1)
158-
mock_write_bookmark.assert_called_with(mock.ANY, "project_cards",
159-
mock.ANY, {"since": "2022-04-01T00:00:00Z"})
148+
# Projects parent and child streams were deprecated by Github. Test commented out 07/21/25
149+
# def test_nested_child(self, mock_write_bookmark):
150+
# """
151+
# Test for the stream if the nested child is selected
152+
# """
153+
# test_stream = Projects()
154+
# test_stream.write_bookmarks("projects", ["project_cards"],
155+
# "2022-04-01T00:00:00Z", "org/test-repo", self.state)
156+
157+
# # Verify `write_bookmark` is called for all selected streams
158+
# self.assertEqual(mock_write_bookmark.call_count, 1)
159+
# mock_write_bookmark.assert_called_with(mock.ANY, "project_cards",
160+
# mock.ANY, {"since": "2022-04-01T00:00:00Z"})
160161

161162

162163
class TestGetChildUrl(unittest.TestCase):

0 commit comments

Comments
 (0)