Skip to content

Commit

Permalink
chore: fix tests and add missing precommit change
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalcengio authored and shon-button committed Jan 8, 2025
1 parent db51b14 commit 2820ad0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bc_obps/service/tests/test_report_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def test_creates_report_with_right_data(self):
report_version = report.report_versions.first()
self.assertEqual(report_version.report, report)
self.assertFalse(report_version.is_latest_submitted)
self.assertEqual(report_version.status, 'draft')
self.assertEqual(report_version.status, 'Draft')

# Testing the report_operation data
self.assertSequenceEqual(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ export default function ReportingOperationStatusCell(
const statusColor = colorMap.get(status) || "primary";
const isMultiLineStatus = status === ReportOperationStatus.NOT_STARTED;

// Adjust the font size for multi-line statuses so it will fit in the chip
const fontSize = isMultiLineStatus ? "14px" : "16px";
return (
<Chip
label={
// whiteSpace: "normal" is needed to wrap the text in the chip for multi-line statuses like "Not started"
<div style={{ whiteSpace: "normal", color: statusColor, fontSize }}>
{status}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ describe("operationColumns function", () => {
);
assert(columns[2].width === 120, "Column 3 width should be 120");

assert(columns[3].field === "report_status", 'Column 4 field should be "report_tatus"');
assert(
columns[3].field === "report_status",
'Column 4 field should be "report_status"',
);
assert(columns[3].width === 160, "Column 4 width should be 160");

assert(columns[4].field === "more", 'Column 5 field should be "action"');
Expand Down

0 comments on commit 2820ad0

Please sign in to comment.