File: test_conda_configuration.py

package info (click to toggle)
python-azure 20250603%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 851,724 kB
  • sloc: python: 7,362,925; ansic: 804; javascript: 287; makefile: 195; sh: 145; xml: 109
file content (32 lines) | stat: -rw-r--r-- 703 bytes parent folder | download
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))