Skip to content

Commit a38ee77

Browse files
committed
Partial reversion of #125 - restore Status as a mandatory field on Maintenance object
1 parent 35dcb30 commit a38ee77

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

circuit_maintenance_parser/output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ class Maintenance(BaseModel, extra=Extra.forbid):
137137
end: StrictInt
138138
stamp: StrictInt
139139
organizer: StrictStr
140+
status: Status
140141

141142
# Non mandatory attributes
142-
status: Status = Status.NO_CHANGE
143143
uid: StrictStr = "0"
144144
sequence: StrictInt = 1
145145
summary: StrictStr = ""

tests/unit/test_output.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
("provider", None, ValidationError),
3636
("provider", 1, ValidationError),
3737
("provider", "good", None),
38-
# Non mandatory attributes
39-
("status", None, None),
38+
("status", None, ValidationError),
4039
("status", 1, ValidationError),
4140
("status", "good", ValidationError),
4241
("status", "IN-PROCESS", None),
42+
# Non mandatory attributes
4343
("sequence", None, None),
4444
("sequence", "1", ValidationError),
4545
("sequence", 1, None),

0 commit comments

Comments
 (0)