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

Fix timezone issue in tests caused by dls #21

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

KaitCrawford
Copy link
Collaborator

The ordered timezone list that the phonenumbers library returns for the msisdn in these tests currently looks like this
[{'name': 'Indian/Cocos', 'offset': 6.5}, {'name': 'Indian/Christmas', 'offset': 7.0}, {'name': 'Australia/Perth', 'offset': 8.0}, {'name': 'Australia/Eucla', 'offset': 8.75}, {'name': 'Australia/Brisbane', 'offset': 10.0}, {'name': 'Australia/Adelaide', 'offset': 10.5}, {'name': 'Australia/Lord_Howe', 'offset': 11.0}, {'name': 'Australia/Sydney', 'offset': 11.0}]

However, Adelaide uses daylight savings while Brisbane does not. That means that for half the year Adelaide will appear ahead of Brisbane in the list.

I have changed the tests so that they are no longer reliant on the current datetime.

@KaitCrawford KaitCrawford merged commit 702963f into master Jan 17, 2024
1 check 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.

2 participants