File tree 2 files changed +30
-0
lines changed 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -367,6 +367,7 @@ def split_endpoint_string(endpoint_string):
367
367
return endpoint_strings
368
368
369
369
def endpoints_from_strings (endpoint_strings , shortcuts = {}):
370
+ _logger .debug ('Creating endpoints from strings %s with shortcuts %s' , endpoint_strings , shortcuts )
370
371
return [Endpoint .parse_endpoint (expand_coordinate (ep , shortcuts = shortcuts )) for ep in endpoint_strings ]
371
372
372
373
def coordinates_from_endpoints (endpoints ):
Original file line number Diff line number Diff line change
1
+ import jgo
2
+ import pathlib
3
+ import tempfile
4
+ import unittest
5
+
6
+ import logging
7
+ _logger = logging .getLogger (__name__ )
8
+
9
+ class ExpansionTest (unittest .TestCase ):
10
+
11
+ def test_groovy_issue_46 (self ):
12
+ shortcuts = {'groovy' : 'org.codehaus.groovy:groovy-groovysh:org.codehaus.groovy.tools.shell.Main+commons-cli:commons-cli:1.3.1' }
13
+
14
+ tmp_dir = tempfile .mkdtemp (prefix = 'jgo-test-cache-dir' )
15
+ m2_repo = pathlib .Path .home () / '.m2' / 'repository'
16
+
17
+ primary_endpoint , workspace = jgo .resolve_dependencies (
18
+ 'groovy' ,
19
+ cache_dir = tmp_dir ,
20
+ m2_repo = m2_repo ,
21
+ update_cache = True ,
22
+ shortcuts = shortcuts ,
23
+ verbose = 1 )
24
+ _logger .debug ('Got primary_endpoint %s and workspace %s' , primary_endpoint , workspace )
25
+
26
+
27
+ if __name__ == '__main__' :
28
+ logging .basicConfig (level = logging .DEBUG )
29
+ unittest .main ()
You can’t perform that action at this time.
0 commit comments