lib/lp/code/xmlrpc/codehosting.py
in: def branchChanged(self, branch_id, stacked_on_location, last_revision_id):
+ branch.last_mirrored = datetime.datetime.now(pytz.UTC)
should probably be using UTC_NOW
lib/lp/codehosting/inmemory.py branchChanged event should use UTC_NOW too.
then:
test_branchChanged_sets_last_mirrored
can use:
self.assertSqlAttributeEqualsDate(
branch, 'last_mirrored', UTC_NOW)
def test_branchChanged_doesnt_create_scan_job_for_noop_change(self):
# XXX Is this even the right thing to do?
It will be with your next pipe.
lib/lp/codehosting/vfs/branchfs.py
class LaunchpadServer (I think - around line 558)
the __init__ method still refers to the authserver, also there is a
XXX comment that I'm wondering whether we can remove it or not.
lib/lp/codehosting/vfs/tests/test_branchfs.py - still refers to an
authserver too.
# XXX Maaaybe we could complain on stderr here?
- Not following our XXX format, and is this something we want to do?
# XXX: JonathanLange 2007-05-29: The 'chroot' line lacks a unit test.
I don't suppose you want to add a unit test for this?
General Note: we probably want to rename config.codehosting.mirrored_branches
at some stage.
lib/lp/ code/xmlrpc/ codehosting. py on_location, last_revision_id): last_mirrored = datetime. datetime. now(pytz. UTC)
in: def branchChanged(self, branch_id, stacked_
+ branch.
should probably be using UTC_NOW
lib/lp/ codehosting/ inmemory. py branchChanged event should use UTC_NOW too.
then: ged_sets_ last_mirrored assertSqlAttrib uteEqualsDate(
test_branchChan
can use:
self.
branch, 'last_mirrored', UTC_NOW)
def test_branchChan ged_doesnt_ create_ scan_job_ for_noop_ change( self):
# XXX Is this even the right thing to do?
It will be with your next pipe.
lib/lp/ codehosting/ vfs/branchfs. py
class LaunchpadServer (I think - around line 558)
the __init__ method still refers to the authserver, also there is a
XXX comment that I'm wondering whether we can remove it or not.
lib/lp/ codehosting/ vfs/tests/ test_branchfs. py - still refers to an
authserver too.
# XXX Maaaybe we could complain on stderr here?
- Not following our XXX format, and is this something we want to do?
# XXX: JonathanLange 2007-05-29: The 'chroot' line lacks a unit test.
I don't suppose you want to add a unit test for this?
General Note: we probably want to rename config. codehosting. mirrored_ branches
at some stage.