Skip to content

Commit 69e6b8d

Browse files
committed
Update tests
1 parent df438b4 commit 69e6b8d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

backend/tests/apps/owasp/models/project_health_metrics_test.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,13 @@ def test_handle_days_calculation(self, field_name, expected_days):
121121
assert getattr(metrics, field_name) == expected_days
122122

123123
@patch("apps.owasp.models.project_health_metrics.ProjectHealthMetrics.get_stats")
124-
@patch("reportlab.pdfgen.canvas.Canvas")
125-
@patch("reportlab.platypus.Table")
126-
@patch("reportlab.platypus.TableStyle")
127-
@patch("reportlab.platypus.tables.Table.setStyle")
128-
@patch("io.BytesIO")
124+
@patch("apps.owasp.models.project_health_metrics.Canvas")
125+
@patch("apps.owasp.models.project_health_metrics.Table")
126+
@patch("apps.owasp.models.project_health_metrics.TableStyle")
127+
@patch("apps.owasp.models.project_health_metrics.BytesIO")
129128
def test_generate_overview_pdf(
130129
self,
131130
mock_bytes_io,
132-
mock_set_style,
133131
mock_table_style,
134132
mock_table,
135133
mock_canvas,

0 commit comments

Comments
 (0)