This commit is contained in:
Richin Jain 2019-07-13 22:37:01 -04:00
Родитель 3aa72eb472
Коммит ab0972eff4
2 изменённых файлов: 1 добавлений и 46 удалений

Просмотреть файл

@ -236,20 +236,4 @@ def workspace_name(request):
@pytest.fixture
def workspace_region(request):
return request.config.getoption("--workspace_region")
@pytest.fixture
def image_name(request):
return request.config.getoption("--image_name")
# def pytest_generate_tests(metafunc):
# if "--subscription_id" in metafunc.fixturenames:
# metafunc.parametrize("subscription_id", metafunc.config.getoption("subscription_id"))
# if "--resource_group" in metafunc.fixturenames:
# metafunc.parametrize("resource_group", metafunc.config.getoption("resource_group"))
# if "--workspace_name" in metafunc.fixturenames:
# metafunc.parametrize("workspace_name", metafunc.config.getoption("workspace_name"))
# if "--workspace_region" in metafunc.fixturenames:
# metafunc.parametrize("workspace_region", metafunc.config.getoption("workspace_region"))
# if "--image_name" in metafunc.fixturenames:
# metafunc.parametrize("image_name", metafunc.config.getoption("image_name"))
return request.config.getoption("--workspace_region")

Просмотреть файл

@ -16,35 +16,6 @@ import shutil
KERNEL_NAME = "cv"
OUTPUT_NOTEBOOK = "output.ipynb"
import argparse
parser = argparse.ArgumentParser()
"""
subscription_id = "2ad17db4-e26d-4c9e-999e-adae9182530c"#"YOUR_SUBSCRIPTION_ID"
resource_group = "rijaidelnewrg1"#"YOUR_RESOURCE_GROUP_NAME"
workspace_name = "rijaidelnewrg1ws6"#"YOUR_WORKSPACE_NAME"
workspace_region = "eastus2" #"YOUR_WORKSPACE_REGION" #Possible values eastus, eastus2 and so on.
image_name = "rijaiamlimage3" #"YOUR_IMAGE_NAME" # without the underscores.
"""
# def create_arg_parser():
# parser = argparse.ArgumentParser(description='Process inputs')
# parser.add_argument("--subscription_id",
# help="Azure Subscription Id to create resources in")
# parser.add_argument("--resource_group",
# help="Name of the resource group")
# parser.add_argument("--workspace_name",
# help="Name of Azure ML Workspace")
# parser.add_argument("--workspace_region",
# help="Azure region to create the workspace in")
# parser.add_argument("--image_name",
# help="Name of docker image in Azure ML Workspace")
# args = parser.parse_args()
# return args
@pytest.mark.amlnotebooks
def test_20_notebook_run(
classification_notebooks,