Rev 223: Fixed failing test. in http://bzr.daniel-watkins.co.uk/pqm/xmlrpc

Daniel Watkins daniel at daniel-watkins.co.uk
Fri Aug 1 04:16:17 BST 2008


At http://bzr.daniel-watkins.co.uk/pqm/xmlrpc

------------------------------------------------------------
revno: 223
revision-id: daniel at daniel-watkins.co.uk-20080801031440-gdqnoh81a3jbcsha
parent: daniel at daniel-watkins.co.uk-20080801031113-89f6z05cnneact1w
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: xmlrpc-validation
timestamp: Fri 2008-08-01 04:14:40 +0100
message:
  Fixed failing test.
-------------- next part --------------
=== modified file 'pqm/tests/__init__.py'
--- a/pqm/tests/__init__.py	2008-08-01 02:45:01 +0000
+++ b/pqm/tests/__init__.py	2008-08-01 03:14:40 +0000
@@ -51,9 +51,9 @@
         myFile.write(dedent("""\
             [http://www.example.com/bar/baz]
             project=project
-            published_at=%s/baz
             [http://www.example.com/fred/waldo]
-            """ % (self.cwd,)))
+            [baz]
+            """))
         myFile.close()
         self.queuedir = os.path.join(self.cwd, "queue")
         try:

=== modified file 'pqm/ui/tests/test_xmlrpc.py'
--- a/pqm/ui/tests/test_xmlrpc.py	2008-08-01 03:11:13 +0000
+++ b/pqm/ui/tests/test_xmlrpc.py	2008-08-01 03:14:40 +0000
@@ -40,7 +40,7 @@
     def test_valid_submission(self):
         xmlrpc = self.get_xmlrpc()
         msg = (sample_message_template %
-                ('star-merge baz http://www.example.com/bar/baz',))
+                ('star-merge baz baz',))
         out = xmlrpc.xmlrpc_submit(msg)
         self.assertEqual('Success!', out)
         queuedir = xmlrpc.pqminfo.queuedir



More information about the bazaar-commits mailing list