Example #1
0
 def test_get_nose_test_class(self):
     test_name = util.get_test_name(self.mock_view, 'nose', 'class')
     self.assertEqual('test_app.tests:FakeTestClass', test_name)
Example #2
0
 def test_get_nose_test_suite(self):
     test_name = util.get_test_name(self.mock_view, 'nose', 'suite')
     self.assertEqual('test_app.tests', test_name)
Example #3
0
 def test_get_nose_test_method(self):
     test_name = util.get_test_name(self.mock_view, 'nose', 'method')
     self.assertEqual('test_app.tests:FakeTestClass.test_fake', test_name)
Example #4
0
 def test_get_django_test_suite(self):
     test_name = util.get_test_name(self.mock_view, 'django', 'suite')
     self.assertEqual('test_app', test_name)
Example #5
0
 def test_get_django_test_class(self):
     test_name = util.get_test_name(self.mock_view, 'django', 'class')
     self.assertEqual('test_app.FakeTestClass', test_name)
Example #6
0
 def test_get_django_test_method(self):
     test_name = util.get_test_name(self.mock_view, 'django', 'method')
     self.assertEqual('test_app.FakeTestClass.test_fake', test_name)
 def _run(self, edit, target):
     mode = self.view.settings().get(settings.TEST_MODE, "django")
     terminal = self.view.settings().get(settings.TEST_TERMINAL_SETTING, None)
     test_command = util.get_test_command(mode, self.view.settings(), self.view.file_name())
     test_name = util.get_test_name(self.view, mode, target=target)
     util.run_test_command(test_command, test_name, terminal)