forked from andreafrancia/trash-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
problems-activated-by-the-fixing-of-bug.txt
143 lines (130 loc) · 8.03 KB
/
problems-activated-by-the-fixing-of-bug.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
======================================================================
FAIL: integration_tests.test_trash_put.exit_code.should_be_zero_on_success
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/andrea/code/trash-cli/integration_tests/test_trash_put.py", line 116, in should_be_zero_on_success
self.exit_code_should_be_successfull()
File "/Users/andrea/code/trash-cli/integration_tests/test_trash_put.py", line 124, in exit_code_should_be_successfull
assert_equals(0, self.exit_code)
AssertionError: 0 != 74
======================================================================
FAIL: integration_tests.test_trash_put.trash_put_stderr.should_tell_where_a_file_is_trashed
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/andrea/code/trash-cli/integration_tests/test_trash_put.py", line 47, in should_tell_where_a_file_is_trashed
self.stderr.splitlines())
AssertionError: "trash-put: `foo' trashed in sandbox/XDG_DATA_HOME/Trash" not
found in ['trash-put: found unsecure .Trash dir (should be sticky): .Trash',
"trash-put: cannot trash regular empty file `foo'"]
======================================================================
FAIL: integration_tests.test_trash_put.when_deleting_a_file.it_should_remove_the_file
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/andrea/code/trash-cli/integration_tests/test_trash_put.py", line 141, in it_should_remove_the_file
file_should_have_been_deleted('sandbox/foo')
File "/Users/andrea/code/trash-cli/integration_tests/test_trash_put.py", line 216, in file_should_have_been_deleted
assert not os.path.exists('sandbox/foo')
AssertionError
======================================================================
FAIL: integration_tests.test_trash_put.when_fed_with_dot_arguments.test_dot_argument_is_skipped
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/andrea/code/trash-cli/integration_tests/test_trash_put.py", line 166, in test_dot_argument_is_skipped
"trash-put: cannot trash directory `.'\n")
File "/Users/andrea/code/trash-cli/integration_tests/output_collector.py", line 13, in should_be
assert_equals_with_unidiff(expected, self.stream.getvalue())
File "/Users/andrea/code/trash-cli/integration_tests/assert_equals_with_unidiff.py", line 19, in assert_equals_with_unidiff
unidiff(expected, actual))
AssertionError:
Expected:"trash-put: cannot trash directory `.'\n"
Actual:"trash-put: cannot trash directory `.'\ntrash-put: cannot trash
regular empty file `other_argument'\n"
--- Expected
+++ Actual
@@ -1 +1,2 @@
trash-put: cannot trash directory `.'
+trash-put: cannot trash regular empty file `other_argument'
======================================================================
FAIL: integration_tests.test_trash_put.when_fed_with_dot_arguments.test_dot_argument_is_skipped_even_in_subdirs
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/andrea/code/trash-cli/integration_tests/test_trash_put.py", line 193, in test_dot_argument_is_skipped_even_in_subdirs
"trash-put: cannot trash `.' directory `sandbox/.'\n")
File "/Users/andrea/code/trash-cli/integration_tests/output_collector.py", line 13, in should_be
assert_equals_with_unidiff(expected, self.stream.getvalue())
File "/Users/andrea/code/trash-cli/integration_tests/assert_equals_with_unidiff.py", line 19, in assert_equals_with_unidiff
unidiff(expected, actual))
AssertionError:
Expected:"trash-put: cannot trash `.' directory `sandbox/.'\n"
Actual:"trash-put: cannot trash `.' directory `sandbox/.'\ntrash-put: cannot trash regular empty file `other_argument'\n"
--- Expected
+++ Actual
@@ -1 +1,2 @@
trash-put: cannot trash `.' directory `sandbox/.'
+trash-put: cannot trash regular empty file `other_argument'
======================================================================
FAIL: integration_tests.test_trash_put.when_fed_with_dot_arguments.test_dot_dot_argument_is_skipped
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/andrea/code/trash-cli/integration_tests/test_trash_put.py", line 179, in test_dot_dot_argument_is_skipped
"trash-put: cannot trash directory `..'\n")
File "/Users/andrea/code/trash-cli/integration_tests/output_collector.py", line 13, in should_be
assert_equals_with_unidiff(expected, self.stream.getvalue())
File "/Users/andrea/code/trash-cli/integration_tests/assert_equals_with_unidiff.py", line 19, in assert_equals_with_unidiff
unidiff(expected, actual))
AssertionError:
Expected:"trash-put: cannot trash directory `..'\n"
Actual:"trash-put: cannot trash directory `..'\ntrash-put: cannot trash regular empty file `other_argument'\n"
--- Expected
+++ Actual
@@ -1 +1,2 @@
trash-put: cannot trash directory `..'
+trash-put: cannot trash regular empty file `other_argument'
======================================================================
FAIL: integration_tests.test_trash_put.when_fed_with_dot_arguments.test_dot_dot_argument_is_skipped_even_in_subdirs
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/andrea/code/trash-cli/integration_tests/test_trash_put.py", line 208, in test_dot_dot_argument_is_skipped_even_in_subdirs
"trash-put: cannot trash `..' directory `sandbox/..'\n")
File "/Users/andrea/code/trash-cli/integration_tests/output_collector.py", line 13, in should_be
assert_equals_with_unidiff(expected, self.stream.getvalue())
File "/Users/andrea/code/trash-cli/integration_tests/assert_equals_with_unidiff.py", line 19, in assert_equals_with_unidiff
unidiff(expected, actual))
AssertionError:
Expected:"trash-put: cannot trash `..' directory `sandbox/..'\n"
Actual:"trash-put: cannot trash `..' directory `sandbox/..'\ntrash-put: cannot trash regular empty file `other_argument'\n"
--- Expected
+++ Actual
@@ -1 +1,2 @@
trash-put: cannot trash `..' directory `sandbox/..'
+trash-put: cannot trash regular empty file `other_argument'
======================================================================
FAIL: unit_tests.test_home_fallback.TestHomeFallback.test_should_skip_top_trash_if_does_not_exists
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/andrea/code/trash-cli/unit_tests/test_home_fallback.py", line 45, in test_should_skip_top_trash_if_does_not_exists
], self.fs.mock_calls)
AssertionError: [call.isdir('.Trash'), call.islink('.Trash'),
call.ensure_dir('.Trash/123/info', 448),
call.atomic_write('.Trash/123/info/foo.trashinfo', <ANY>),
call.ensure_dir('.Trash/123/files', 448), call.move('sandbox/foo',
'.Trash/123/files/foo')] != [call.isdir('.Trash'), call.islink('.Trash')]
----------------------------------------------------------------------
Ran 162 tests in 0.925s
FAILED (SKIP=2, failures=8)