1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
import os
import pytest
import json
from ci_tools.conda.CondaConfiguration import CondaConfiguration
def test_conda_config_retrieve():
raw_json = """
{
"name": "azure-core",
"common_root": "azure",
"service": "core",
"in_batch": true,
"checkout": [
{
"package": "azure-core",
"version": "1.32.0"
},
{
"package": "azure-mgmt-core",
"version": "1.5.0"
},
{
"package": "azure-common",
"version": "1.1.28"
}
]
}
"""
CondaConfiguration.from_json(json.loads(raw_json))
|