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)
Exemplo n.º 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_get_command_to_rerun_last_tests_returns_the_command_last_used_to_run_tests(self):
     current_dir = '/tmp/project_app_only/example_app1/tests/test_file.py'
     command_to_run = sut.get_command_to_run_the_current_app(current_dir)
     last_command = sut.get_command_to_rerun_last_tests()
     self.assertEqual(command_to_run, last_command)
 def test_get_command_to_rerun_last_tests_returns_the_command_last_used_to_run_tests(
         self):
     current_dir = '/tmp/project_app_only/example_app1/tests/test_file.py'
     command_to_run = sut.get_command_to_run_the_current_app(current_dir)
     last_command = sut.get_command_to_rerun_last_tests()
     self.assertEqual(command_to_run, last_command)
 def test_create_command_to_run_current_file_with_nosetests_writes_command_to_cache_file_when_successfully_called(self):
     path_to_current_file = "/tmp/project/tests/aTestFile.py"
     command_to_run = sut.get_command_to_run_current_file_with_nosetests(path_to_current_file)
     last_command = sut.get_command_to_rerun_last_tests()
     self.assertEqual(command_to_run, last_command)
Exemplo n.º 6
0
 def test_create_command_to_run_current_file_with_nosetests_writes_command_to_cache_file_when_successfully_called(self):
     path_to_current_file = "/tmp/project/tests/aTestFile.py"
     command_to_run = sut.get_command_to_run_current_file_with_nosetests(path_to_current_file)
     last_command = sut.get_command_to_rerun_last_tests()
     self.assertEqual(command_to_run, last_command)