File tree 2 files changed +9
-10
lines changed
2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 18
18
# Commands
19
19
autocomplete = "autocomplete"
20
20
autocompletion = "Autocompletion"
21
- emulate = "emulate"
22
21
errorreporting = "error-reporting"
23
22
error_reporting = "Error reporting"
24
23
usage_reporting = "Usage reporting"
25
24
restart_shell = "Restart your shell to {0} command auto-completion."
26
25
27
-
28
26
# Info
29
27
enabled = "{0} is {1}enabled."
30
28
disabled = "{0} is {1}disabled."
Original file line number Diff line number Diff line change 1
1
"""
2
- Tests redirecting error log and command options validations .
2
+ Tests for error output .
3
3
"""
4
4
5
+ import time
6
+
7
+ from core .base_class .BaseClass import BaseClass
5
8
from core .osutils .file import File
9
+ from core .settings .strings import invalid , invalid_input , invalid_option
6
10
from core .tns .tns import Tns
7
- from core .base_class .BaseClass import BaseClass
8
- from core .settings .strings import *
9
- import time
10
11
11
12
12
- class OutputStderrTests (BaseClass ):
13
+ class StderrOutputTests (BaseClass ):
13
14
def tearDown (self ):
14
15
print ""
15
16
print "{0} ____________________________________TEST END____________________________________" . \
16
17
format (time .strftime ("%X" ))
17
18
print ""
18
19
19
- def test_001_output_strerr (self ):
20
+ def test_001_redirect_strerr_output_to_file (self ):
20
21
File .remove ('./stderr.txt' )
21
- output = Tns .run_tns_command (run + " " + invalid , attributes = {" 2> stderr.txt " : "" })
22
- assert invalid_input .format (run ) in output
22
+ output = Tns .run_tns_command ("run " + invalid , attributes = {" 2> stderr.txt " : "" })
23
+ assert invalid_input .format (" run" ) in output
23
24
24
25
def test_002_command_option_validation (self ):
25
26
output = Tns .run_tns_command ("create " + self .app_name , attributes = {"--" + invalid : "tns-app" })
You can’t perform that action at this time.
0 commit comments