-
Notifications
You must be signed in to change notification settings - Fork 165
[1LP][RFR] Automate: test_reports_timezone #9904
Conversation
a283991
to
729e623
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one small comment 👍
@cached_property | ||
def queued_datetime_in_title(self): | ||
return parsetime.from_american_with_utc(self.queued_datetime).to_saved_report_title_format() | ||
delattr(self.appliance, "rest_api") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps put a small comment about why you need to clear the cache.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice PR with a first look; I suspect about string if area not found. I will continue review
return cls._parse(cls.saved_report_title_format, time_string) | ||
""" | ||
return cls._parse( | ||
f"{cls.saved_report_title_format} {get_time_difference(area)}", time_string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If area
not found then it will formate "something None(area)". I think better to avoid this.
6d16070
to
49a31b5
Compare
49a31b5
to
213cdf0
Compare
Small changes Requested changes
213cdf0
to
011b2c8
Compare
I detected some fixture changes in commit 011b2c8 The local fixture
Please, consider creating a PRT run to make sure your fixture changes do not break existing usage 😃 |
Purpose or Intent
test_reports_timezone
cfme.utils.timeutil.parsetime
to be compatible with different timezones. This may not work in case the timezone is not found inpytz
module.report_timezone
toSavedReport
entity and modifyqueued_datetime_in_title
anddatetime_in_tree
accordingly.PRT Run
{{ pytest: cfme/tests/intelligence/reports/test_reports.py -k "test_reports_timezone" -vvv }}