Skip to content

Commit

Permalink
Add integ test for PEP 600 tags
Browse files Browse the repository at this point in the history
  • Loading branch information
aahung committed May 25, 2021
1 parent a02b299 commit f46ff1f
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions tests/integration/buildcmd/test_build_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,22 +89,28 @@ class TestBuildCommand_PythonFunctions(BuildIntegBase):

@parameterized.expand(
[
("python2.7", False),
("python3.6", False),
("python3.7", False),
("python3.8", False),
("python2.7", "use_container"),
("python3.6", "use_container"),
("python3.7", "use_container"),
("python3.8", "use_container"),
("python2.7", "Python", False),
("python3.6", "Python", False),
("python3.7", "Python", False),
("python3.8", "Python", False),
# numpy 1.20.3 (in PythonPEP600/requirements.txt) only support python 3.7+
("python3.7", "PythonPEP600", False),
("python3.8", "PythonPEP600", False),
("python2.7", "Python", "use_container"),
("python3.6", "Python", "use_container"),
("python3.7", "Python", "use_container"),
("python3.8", "Python", "use_container"),
# numpy 1.20.3 (in PythonPEP600/requirements.txt) only support python 3.7+
("python3.7", "PythonPEP600", "use_container"),
("python3.8", "PythonPEP600", "use_container"),
]
)
@pytest.mark.flaky(reruns=3)
def test_with_default_requirements(self, runtime, use_container):
def test_with_default_requirements(self, runtime, codeuri, use_container):
if use_container and SKIP_DOCKER_TESTS:
self.skipTest(SKIP_DOCKER_MESSAGE)

overrides = {"Runtime": runtime, "CodeUri": "Python", "Handler": "main.handler"}
overrides = {"Runtime": runtime, "CodeUri": codeuri, "Handler": "main.handler"}
cmdlist = self.get_command_list(use_container=use_container, parameter_overrides=overrides)

LOG.info("Running Command: {}".format(cmdlist))
Expand Down

0 comments on commit f46ff1f

Please sign in to comment.