lp:wader
- Get this branch:
- bzr branch lp:wader
Branch merges
Import details
This branch is an import of the HEAD branch of the Git repository at https://github.com/andrewbird/wader.git.
Last successful import was .
Recent revisions
- 859. By Andrew Bird
-
Ensure consistency when checking SMS timestamps
Rewrite the test to use fixed datetimes in a variety of timezones but
with and without DST applied. - 858. By Andrew Bird
-
Ensure that datetime conversion to DB is ok
Add a test that checks what we write to the database for usage segments
is what we expect after passing through the adapter/converter - 857. By Andrew Bird
-
Add simple implementation of get_localzone
The tzlocal python module does not seem to be packaged for Debian/Ubuntu
so let's create a simple implementation for our clients to use if it's
not around. - 856. By Andrew Bird
-
Ensure get_usage_* functions respect timezone
Pass the timezone through on get_usage_* functions. Adjust and simplify
tests to accomodate. - 855. By Andrew Bird
-
Extend date_to_datetime() to be timezone aware
Previously the conversion would be dependent upon the localtime
definition of the machine running the tests. In order to get a consistent
test regime, expand the function to optionally allow a timezone to be
specified. Adjust the tests to use it. - 854. By Andrew Bird
-
Expand get_usage_for_day provider test for DST etc
Add tests to ensure that get_usage_for_day() does the right thing when
DST and large timezone offsets are applied as it is called in localtime
but database is in UTC. - 853. By Andrew Bird
-
Make get_usage_for_day() consistent
Previously items that straddled the dateline i.e. start today, end
tomorrow, were never included in get_usage_for_day() results. Change the
semantics such that only the end time is tested for day membership.
Arguably the database fields should have been specified as end_time,
duration etc, rather than start_time, end_time. Change the test to
reflect the new semantics. - 852. By Andrew Bird
-
Ensure test_delete_
usage_item is predictable Previously the base time for this test was determined by the
time that the test was actually running, leading to sporadic
failures. This patch changes the test to run at a fixed time. - 851. By Andrew Bird
-
Ensure test_add_usage_item is predictable
Previously the base time for this test was determined by the
time that the test was actually running, leading to sporadic
failures. This patch changes the test to run at a fixed time.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)