Merge lp:~bac/charmworld/utc-smackdown into lp:~juju-jitsu/charmworld/trunk
Status: | Merged |
---|---|
Approved by: | Brad Crittenden |
Approved revision: | 421 |
Merged at revision: | 420 |
Proposed branch: | lp:~bac/charmworld/utc-smackdown |
Merge into: | lp:~juju-jitsu/charmworld/trunk |
Diff against target: |
114 lines (+10/-9) 8 files modified
.lbox (+1/-0) Makefile (+1/-1) charmworld/jobs/tests/test_askubuntu.py (+2/-2) charmworld/jobs/tests/test_review.py (+1/-1) charmworld/migrations/migrate.py (+2/-2) charmworld/reports.py (+1/-1) charmworld/tests/test_utils.py (+1/-1) charmworld/utils.py (+1/-1) |
To merge this branch: | bzr merge lp:~bac/charmworld/utc-smackdown |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Gui Bot | continuous-integration | Approve | |
Juju-Jitsu Hackers | Pending | ||
Review via email: mp+191291@code.launchpad.net |
Commit message
Make cw code tests tz agnostic.
In the past there have been some incredibly hard to debug test failures
caused by using .now() vs .utcnow(). During a routine inspection I saw
various instances of .now() being used and have replaced them.
Added a .lbox to use -cr on propose by default and set the project
to lp:charmworld.
Fixed the testdebug target to stop on failures in addition to errors.
https:/
R=rharding
Description of the change
Make cw code tests tz agnostic.
In the past there have been some incredibly hard to debug test failures
caused by using .now() vs .utcnow(). During a routine inspection I saw
various instances of .now() being used and have replaced them.
Added a .lbox to use -cr on propose by default and set the project
to lp:charmworld.
Fixed the testdebug target to stop on failures in addition to errors.
Reviewers: mp+191291_ code.launchpad. net,
Message:
Please take a look.
Description:
Make cw code tests tz agnostic.
In the past there have been some incredibly hard to debug test failures
caused by using .now() vs .utcnow(). During a routine inspection I saw
various instances of .now() being used and have replaced them.
Added a .lbox to use -cr on propose by default and set the project
to lp:charmworld.
Fixed the testdebug target to stop on failures in addition to errors.
https:/ /code.launchpad .net/~bac/ charmworld/ utc-smackdown/ +merge/ 191291
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/14486046/
Affected files (+12, -9 lines): jobs/tests/ test_askubuntu. py jobs/tests/ test_review. py migrations/ migrate. py reports. py tests/test_ utils.py utils.py
.lbox
Makefile
[revision details]
charmworld/
charmworld/
charmworld/
charmworld/
charmworld/
charmworld/
Index: .lbox
=== added file '.lbox'
--- .lbox 1970-01-01 00:00:00 +0000
+++ .lbox 2013-10-15 20:26:51 +0000
@@ -0,0 +1,1 @@
+propose -cr -for lp:charmworld
Index: Makefile
=== modified file 'Makefile'
--- Makefile 2013-10-15 17:55:59 +0000
+++ Makefile 2013-10-15 20:04:46 +0000
@@ -122,7 +122,7 @@
bin/test -v -s -x --with-id $(ID) charmworld
testdebug: bin/test
- bin/test --pdb charmworld
+ bin/test --pdb --pdb-failures charmworld
check: clear_ini clean sysdeps install lint testid
Index: [revision details] 20131015180445- lmxsdrtp2xjl0ec 3
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: tarmac-
+New revision: <email address hidden>
Index: charmworld/ reports. py reports. py' reports. py 2013-08-08 12:05:02 +0000 reports. py 2013-10-15 20:04:46 +0000
self. _start_ date = start_date datetime. now() datetime. utcnow( )
self. _end_date = end_date
self. _step = step
self. _series = {}
=== modified file 'charmworld/
--- charmworld/
+++ charmworld/
@@ -34,7 +34,7 @@
def __init__(self, start_date, step, end_date=None):
if end_date is None:
- end_date = datetime.
+ end_date = datetime.
Index: charmworld/ migrations/ migrate. py migrations/ migrate. py' migrations/ migrate. py 2013-08-28 20:19:02 +0000 migrations/ migrate. py 2013-10-15 20:04:46 +0000
self. db.migration_ version. save({
'_id': 'version',
'version' : version,
=== modified file 'charmworld/
--- charmworld/
+++ charmworld/
@@ -98,7 +98,7 @@
- 'date': datetime.now(),
+ 'date': datetime.utcnow(),
})
def version_ datastore( self):
self. db.migration_ version. insert( {
'_id': 'version',
'version' : 0,
@@ -114,7 +114,7 @@
- 'date': datetime.now(),
+ 'date': datetime.utcnow(),
})
Index: charmworld/ jobs/tests/ test_askubuntu. py jobs/tests/ test_askubuntu. py' jobs/tests/ test_askubuntu. py 2013-09-27 16:13:21 +0000 jobs/tests/ test_askubuntu. py 2013-10-15 20:04:46 +0000
=== modified file 'charmworld/
--- charmworld/
+++ charmworld/
@@ ...