File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- import logging
15
+ import logging . config
16
16
17
17
from . import commands
18
18
from . import plugins
19
19
from .internal import main
20
20
21
+
21
22
logging .basicConfig (
22
- format = '%(name)s: [%(levelname)s] %(message)s' ,
23
+ datefmt = '%Y-%m-%d %H:%M:%S%z' ,
24
+ format = '%(levelname).1s %(asctime)s %(name)s: %(message)s' ,
23
25
level = logging .INFO ,
24
26
)
25
27
logging .getLogger ('fireci' ).setLevel (logging .DEBUG )
Original file line number Diff line number Diff line change 28
28
class GradleTest (unittest .TestCase ):
29
29
30
30
@in_tempdir
31
- def test_when_gradle_suceeds_should_not_throw (self ):
31
+ def test_when_gradle_succeeds_should_not_throw (self ):
32
32
create_artifacts (
33
33
Artifact ('gradlew' , content = scripts .with_exit (0 ), mode = 0o744 ))
34
34
self .assertEqual (gradle .run ('tasks' ).returncode , 0 )
35
35
36
36
@in_tempdir
37
- def test_when_gradle_suceeds_should_not_throw (self ):
37
+ def test_when_gradle_succeeds_should_not_throw (self ):
38
38
create_artifacts (
39
39
Artifact ('gradlew' , content = scripts .with_exit (1 ), mode = 0o744 ))
40
40
self .assertRaises (subprocess .CalledProcessError ,
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- import os
16
15
import pathlib
17
- import subprocess
18
16
import unittest
19
17
20
18
from click .testing import CliRunner
@@ -41,7 +39,7 @@ def test_gradle_invocation(self):
41
39
['./gradlew' ] + args ,
42
40
{'GRADLE_OPTS' : 'opts' },
43
41
('sdk1/build/output/file1' , 'content1' ),
44
- ('sdk1/build/outputss /file2' , 'content2' ),
42
+ ('sdk1/build/outputs /file2' , 'content2' ),
45
43
),
46
44
mode = 0o744 ))
47
45
result = self .runner .invoke (cli , [
@@ -53,7 +51,7 @@ def test_gradle_invocation(self):
53
51
artifacts = pathlib .Path ('_artifacts' )
54
52
self .assertTrue (artifacts .exists ())
55
53
56
- output_file = artifacts / 'sdk1_build_outputss ' / 'file2'
54
+ output_file = artifacts / 'sdk1_build_outputs ' / 'file2'
57
55
self .assertFalse (output_file .exists ())
58
56
59
57
output_file = artifacts / 'sdk1_build_output' / 'file1'
You can’t perform that action at this time.
0 commit comments