Skip to content

editoast: refactor train schedule exceptions fixtures#16008

Open
Wadjetz wants to merge 1 commit intofeatures/train-schedule-exceptionsfrom
ebe/editoast/refactor-train_schedule_exception-fixtures
Open

editoast: refactor train schedule exceptions fixtures#16008
Wadjetz wants to merge 1 commit intofeatures/train-schedule-exceptionsfrom
ebe/editoast/refactor-train_schedule_exception-fixtures

Conversation

@Wadjetz
Copy link
Copy Markdown
Member

@Wadjetz Wadjetz commented Mar 30, 2026

Part of #15202

Refactor train schedule exceptions fixtures and test that still use old exceptions types

Note

This PR targets a feature branch and may contain all its commits, as it has not been rebased yet. Only the last commit need to be reviewed.

@Wadjetz Wadjetz self-assigned this Mar 30, 2026
@github-actions github-actions bot added the area:editoast Work on Editoast Service label Mar 30, 2026
@Wadjetz Wadjetz marked this pull request as ready for review March 30, 2026 15:40
@Wadjetz Wadjetz requested a review from a team as a code owner March 30, 2026 15:40
@theocrsb theocrsb force-pushed the features/train-schedule-exceptions branch from 302e525 to 1c564a5 Compare March 31, 2026 19:33
@theocrsb theocrsb requested review from a team as code owners March 31, 2026 19:33
@theocrsb theocrsb requested review from Morgane-SJK and bougue-pe and removed request for a team March 31, 2026 19:33
@Wadjetz Wadjetz force-pushed the ebe/editoast/refactor-train_schedule_exception-fixtures branch from a60e00c to c5866fb Compare April 1, 2026 08:09
Copy link
Copy Markdown
Contributor

@woshilapin woshilapin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this proposition, when a fixture can be entirely contained inside an impl block of the concerned object, I believe it makes sense.

@Wadjetz Wadjetz force-pushed the ebe/editoast/refactor-train_schedule_exception-fixtures branch from c5866fb to be0febb Compare April 1, 2026 13:03
#[cfg(any(test, feature = "testing"))]
impl TrainScheduleExceptionChangeGroups {
pub fn fake_created() -> Self {
pub fn fake() -> Self {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this one too can be changed to fixture_something?

Signed-off-by: Egor <egor@berezify.fr>
@Wadjetz Wadjetz force-pushed the ebe/editoast/refactor-train_schedule_exception-fixtures branch from be0febb to fe60179 Compare April 1, 2026 14:47
@bougue-pe bougue-pe removed request for a team and bougue-pe April 1, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:editoast Work on Editoast Service

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants