lp:wader

Created by Wader and last modified
Get this branch:
bzr branch lp:wader

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Wader
Project:
Wader
Status:
Development

Import details

Import Status: Failed

This branch is an import of the HEAD branch of the Git repository at https://github.com/andrewbird/wader.git.

The import has been suspended because it failed 5 or more times in succession.

Last successful import was .

Import started on juju-98ee42-prod-launchpad-codeimport-1 and finished taking 10 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-5 and finished taking 10 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-3 and finished taking 5 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-2 and finished taking 5 seconds — see the log

Recent revisions

860. By Andrew Bird

Bump version and packaging

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)
This branch contains Public information 
Everyone can see this information.

Subscribers