Kumar McMillan avatar Kumar McMillan committed 7de1a24

changed import paths so that xml plugin tests all pass

Comments (0)

Files changed (4)

unit_tests/test_xml_plugin/formatter_test.py

 
 import unittest
 
-from nosexml import XMLFormatter
+from nose.plugins.xml import XMLFormatter
 
 from cStringIO import StringIO
 

unit_tests/test_xml_plugin/plugin_test.py

 from nose.plugins.capture import Capture
 from nose.plugins import PluginTester
 
-from nosexml import NoseXML, NullRedirect, PrettyPrintFormatter
+from nose.plugins.xml import NoseXML, NullRedirect, PrettyPrintFormatter
 
 class TestNullRedirect(unittest.TestCase):
     def test_basic(self):
             pass
         opts = Foo()
         opts.xml_enabled = True
-        opts.xml_formatter = 'nosexml.PrettyPrintFormatter'
+        opts.xml_formatter = 'nose.plugins.xml.PrettyPrintFormatter'
         opts.xml_capture_stderr = True
         self.pi.configure( opts, {} )
         self.assertEqual( self.pi.enabled, True )
             pass
         opts = Foo()
         opts.xml_enabled = True
-        opts.xml_formatter = 'nosexml.PrettyPrintFormatter'
+        opts.xml_formatter = 'nose.plugins.xml.PrettyPrintFormatter'
         opts.xml_capture_stderr = True
         self.pi.configure( opts, {} )
 
             pass
         opts = Foo()
         opts.xml_enabled = True
-        opts.xml_formatter = 'test.plugin_test.TestFormatter'
+        # hmm, need a known import path to test formatter discovery:
+        opts.xml_formatter = 'test_xml_plugin.plugin_test.TestFormatter'
         opts.xml_capture_stderr = True
         self.pi.configure( opts, {} )
 

unit_tests/test_xml_plugin/prettyprint_test.py

 import sys
 import unittest
 
-from nosexml import PrettyPrintFormatter
+from nose.plugins.xml import PrettyPrintFormatter
 
 from cStringIO import StringIO
 

unit_tests/test_xml_plugin/textmate_test.py

 
 from cStringIO import StringIO
 
-from nosexml import TextMateFormatter
+from nose.plugins.xml import TextMateFormatter
 
 #This is obviously poor testing, but I'm not that concerned about
 #thoroughly testing formatters other than to make sure they don't throw.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.