def test_create_command_to_run_current_method_with_nosetests_writes_command_to_cache_file_when_successfully_called(self):
     path_to_current_file = "/tmp/project/tests/aTestFile.py"
     current_line = 44
     current_buffer = self.build_buffer_helper()
     command_to_run = sut.get_command_to_run_current_method_with_nosetests(path_to_current_file, current_line, current_buffer)
     last_command = sut.get_command_to_rerun_last_tests()
     self.assertEqual(command_to_run, last_command)
Example #2
0
 def test_create_command_to_run_current_method_with_nosetests_writes_command_to_cache_file_when_successfully_called(self):
     path_to_current_file = "/tmp/project/tests/aTestFile.py"
     current_line = 44
     current_buffer = self.build_buffer_helper()
     command_to_run = sut.get_command_to_run_current_method_with_nosetests(path_to_current_file, current_line, current_buffer)
     last_command = sut.get_command_to_rerun_last_tests()
     self.assertEqual(command_to_run, last_command)
 def test_create_command_to_run_current_method_with_nosetests(self):
     path_to_current_file = "/tmp/project/tests/aTestFile.py"
     current_line = "        print('This is a test4b')\n"
     current_buffer = self.build_buffer_helper()
     command_to_run = sut.get_command_to_run_current_method_with_nosetests(path_to_current_file, current_line, current_buffer)
     self.assertEqual(":!nosetests /tmp/project/tests/aTestFile.py:Example2.dummy1b", command_to_run)
 def test_create_command_to_run_current_method_with_nosetests(self):
     path_to_current_file = "/tmp/project/tests/aTestFile.py"
     current_line = 44
     current_buffer = self.build_buffer_helper()
     command_to_run = sut.get_command_to_run_current_method_with_nosetests(path_to_current_file, current_line, current_buffer)
     self.assertEqual(":!nosetests /tmp/project/tests/aTestFile.py:Example3.double_dummy1", command_to_run)
Example #5
0
 def test_create_command_to_run_current_method_with_nosetests(self):
     path_to_current_file = "/tmp/project/tests/aTestFile.py"
     current_line = 44
     current_buffer = self.build_buffer_helper()
     command_to_run = sut.get_command_to_run_current_method_with_nosetests(path_to_current_file, current_line, current_buffer)
     self.assertEqual(":!nosetests /tmp/project/tests/aTestFile.py:Example3.double_dummy1", command_to_run)