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

Set fixed date and switch to median for consistent calculations and reliable tests #92

Merged
merged 3 commits into from
Dec 21, 2024

Conversation

sakan811
Copy link
Owner

Changes Made:

  • Replaced dynamic datetime.today() with a fixed date for consistent test behavior.
  • Updated price calculations to use the median instead of average for reliability and efficiency.

Impact:

  • Ensures consistent and reliable test results.
  • Improves accuracy in hotel price calculations.

Updated the database processing logic to use the median instead of the average for hotel price calculations, supporting both PostgreSQL and SQLite. Introduced dialect-specific handling for efficient median computation and adjusted table creation functions accordingly.
Replaced dynamic `datetime.today()` with a fixed date to ensure consistent and reproducible test behavior. Updated function calls and date formatting to align with the fixed date usage. This improves test reliability and avoids issues caused by date-related variability.
@sakan811 sakan811 added the enhancement New feature or request label Dec 21, 2024
@sakan811 sakan811 merged commit 2a7722d into master Dec 21, 2024
4 checks passed
@sakan811 sakan811 deleted the patch branch December 21, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant