diff test/test_xmlrpc.py @ 5036:380d8d8b30a3

Replace existing run_tests.py script with a pytest script The existing run_test.py script is quite old, a bit restrictive, and doesn't always behave as documented. The pytest testing tool is mature, well documented, and maintained. The run_tests.py script is generating by installing py.test and running: py.tests --genscript=run_tests.py Note: to generate a script that is compatible with python2.6 the command needs to be run using python2.6
author John Kristensen <john@jerrykan.com>
date Thu, 20 Aug 2015 18:15:23 +1000
parents 63c79c0992ae
children 364c54991861
line wrap: on
line diff
--- a/test/test_xmlrpc.py	Fri Aug 21 17:37:22 2015 +1000
+++ b/test/test_xmlrpc.py	Thu Aug 20 18:15:23 2015 +1000
@@ -6,6 +6,7 @@
 
 import unittest, os, shutil, errno, sys, difflib, cgi, re
 
+import pytest
 from xmlrpclib import MultiCall
 from roundup.cgi.exceptions import *
 from roundup import init, instance, password, hyperdb, date
@@ -15,6 +16,8 @@
 from roundup.cgi import TranslationService
 
 import db_test_base
+from .test_mysql import skip_mysql
+from .test_postgresql import skip_postgresql
 
 
 class XmlrpcTest(object):
@@ -251,6 +254,7 @@
     backend = 'anydbm'
 
 
+@skip_mysql
 class mysqlXmlrpcTest(XmlrpcTest, unittest.TestCase):
     backend = 'mysql'
 
@@ -259,6 +263,7 @@
     backend = 'sqlite'
 
 
+@skip_postgresql
 class postgresqlXmlrpcTest(XmlrpcTest, unittest.TestCase):
     backend = 'postgresql'
 

Roundup Issue Tracker: http://roundup-tracker.org/