Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][ADD] project_forecast_line_deadline #13

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

ntsirintanis
Copy link

No description provided.

Copy link

@NL66278 NL66278 left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@ntsirintanis ntsirintanis force-pushed the 14.0-project_forecast_line_deadline branch from 3bce03a to 6817b01 Compare February 15, 2024 11:32
project_forecast_line_deadline/models/project_task.py Outdated Show resolved Hide resolved
# Set forecast_date_deadline manually
task.forecast_date_planned_end = "2022-02-01"
# Dates are not the same anymore
self.assertNotEqual(task.forecast_date_planned_end, task.date_deadline)
Copy link
Member

Choose a reason for hiding this comment

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

Hm, "not the same anymore" could also mean that None was written to the field. Could we, aside from this, also explicitly check for the date that was written?

Copy link
Author

Choose a reason for hiding this comment

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

Basically we give a value directly on the field in line 23.

Copy link
Member

Choose a reason for hiding this comment

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

...yes, but we then don't check for that same value. So, we don't test whether the inverse function actually writes that value - we just test whether the result is a different value. (It's nitpicking, I know)

@ntsirintanis ntsirintanis force-pushed the 14.0-project_forecast_line_deadline branch from 6817b01 to 5517f64 Compare February 26, 2024 09:18
@ntsirintanis ntsirintanis force-pushed the 14.0-project_forecast_line_deadline branch from 5517f64 to dff7328 Compare March 12, 2024 16:17
@ntsirintanis ntsirintanis merged commit cb7d607 into 14.0 Mar 15, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants