Skip to content

Commit

Permalink
Add test 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
kwlzn committed Jul 25, 2017
1 parent 6c7de6e commit 85b8a75
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions tests/test_resolver.py
Expand Up @@ -10,7 +10,7 @@
from pex.common import safe_copy
from pex.crawler import Crawler
from pex.fetcher import Fetcher
# from pex.interpreter import PythonInterpreter
from pex.interpreter import PythonInterpreter
from pex.package import EggPackage, SourcePackage
from pex.resolvable import ResolvableRequirement
from pex.resolver import Resolver, Unsatisfiable, _ResolvableSet, resolve, resolve_multi
Expand Down Expand Up @@ -45,20 +45,20 @@ def test_simple_local_resolve():
dists = resolve(['project'], fetchers=fetchers)
assert len(dists) == 1

#
# def test_simple_local_resolve_multi():
# project_sdist = make_sdist(name='project')
# interpreters = [PythonInterpreter.from_env('python2'), PythonInterpreter.from_env('python3')]
# platforms = ['linux-x86_64', 'macosx-10.11-x86_64']
#
# with temporary_dir() as td:
# safe_copy(project_sdist, os.path.join(td, os.path.basename(project_sdist)))
# fetchers = [Fetcher([td])]
# dists = resolve_multi(['project'],
# fetchers=fetchers,
# interpreters=interpreters,
# platforms=platforms)
# assert len(list(dists)) == 4

def test_simple_local_resolve_multi():
project_sdist = make_sdist(name='project')
interpreters = [PythonInterpreter.from_env('python2'), PythonInterpreter.from_env('python3')]
platforms = ['linux-x86_64', 'macosx-10.11-x86_64']

with temporary_dir() as td:
safe_copy(project_sdist, os.path.join(td, os.path.basename(project_sdist)))
fetchers = [Fetcher([td])]
dists = resolve_multi(['project'],
fetchers=fetchers,
interpreters=interpreters,
platforms=platforms)
assert len(list(dists)) == 4
#
#
# def test_platform_resolve_multi():
Expand Down

0 comments on commit 85b8a75

Please sign in to comment.