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

[16.0] Flappy test in by stock_card_report #341

Closed
simahawk opened this issue Sep 24, 2024 · 2 comments · Fixed by #343
Closed

[16.0] Flappy test in by stock_card_report #341

simahawk opened this issue Sep 24, 2024 · 2 comments · Fixed by #343
Labels

Comments

@simahawk
Copy link

simahawk commented Sep 24, 2024

Looks like this test fails randomly.

2024-09-24 12:17:54,125 302 ERROR odoo odoo.addons.stock_card_report.tests.test_stock_card_report: FAIL: TestStockCardReport.test_reports
Traceback (most recent call last):
  File "/__w/stock-logistics-reporting/stock-logistics-reporting/stock_card_report/tests/test_stock_card_report.py", line 233, in test_reports
    self.assertEqual(res.date, picking_date_user_tz)
AssertionError: datetime.datetime(2024, 9, 24, 14, 17, 54) != datetime.datetime(2024, 9, 24, 14, 17, 53)

See https://github.com/OCA/stock-logistics-reporting/actions/runs/11013550489/job/30582155710#step:8:313

@simahawk simahawk added the bug label Sep 24, 2024
@simahawk simahawk changed the title [16.0] Build broken by stock_card_report [16.0] Flappy test in by stock_card_report Sep 24, 2024
@rousseldenis
Copy link
Sponsor Contributor

@Saran440 I think tests that compare dates should use freezegun. Could you check ?

@Saran440
Copy link
Member

@simahawk @rousseldenis I fix it in #343
Could you recheck, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants