Skip to content

Commit ecbcad6

Browse files
google-labs-jules[bot]BenRKarl
authored andcommitted
Fix: Remove orphaned return statement in test_campaign_report_to_csv.py
This commit removes a stray `return row` line from `examples/misc/tests/test_campaign_report_to_csv.py`. This line was a remnant from the removal of the old `_create_mock_row` helper method and was causing a `NameError: name 'row' is not defined` during test collection, causing all tests in the file to fail.
1 parent df76f16 commit ecbcad6

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

examples/misc/tests/test_campaign_report_to_csv.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ def mock_get_type_side_effect(type_name):
108108
# If it were to be kept, it would need to use the new helper classes or be for a different purpose.
109109
# For now, removing it to avoid confusion with the new MockCSVRow.
110110
# def _create_mock_row(...):
111-
return row
112111

113112
@mock.patch("builtins.open", new_callable=mock.mock_open)
114113
def test_main_success_with_headers(self, mock_open_file):

0 commit comments

Comments
 (0)