diff options
| author | Scott Bahling <sbahling@suse.com> | 2020-02-03 12:57:22 +0100 |
|---|---|---|
| committer | Scott Bahling <sbahling@suse.com> | 2020-02-03 12:57:22 +0100 |
| commit | 6eb3d336cdcc06078cd2629be5e2cbabae29eff6 (patch) | |
| tree | d47496e0ec8da2d25e8af6af4ebae7129f7c794a /test | |
| parent | 001524aa8f7e9e9def363b535baf13bfd76a9f86 (diff) | |
| download | obsapi-6eb3d336cdcc06078cd2629be5e2cbabae29eff6.tar.gz obsapi-6eb3d336cdcc06078cd2629be5e2cbabae29eff6.tar.xz obsapi-6eb3d336cdcc06078cd2629be5e2cbabae29eff6.zip | |
Use status instead of setting to be consistent with the api
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_repo_flags.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_repo_flags.py b/test/test_repo_flags.py index 290a106..8219eef 100644 --- a/test/test_repo_flags.py +++ b/test/test_repo_flags.py @@ -65,10 +65,10 @@ def test_repo_flags_xml_build_flags(): repo_flags = RepoFlags('build', xml=xml2) assert repo_flags.flag_type == 'build' for flag in repo_flags.flags: - if flag.setting == 'enable': + if flag.status == 'enable': assert flag.repository == 'SLE_12_SP3' assert flag.arch == 'x86_64' - if flag.setting == 'disable': + if flag.status == 'disable': assert flag.repository is None assert flag.arch is None @@ -77,7 +77,7 @@ def test_repo_flags_xml_debuginfo_flags(): repo_flags = RepoFlags('debuginfo', xml=xml2) assert repo_flags.flag_type == 'debuginfo' for flag in repo_flags.flags: - if flag.setting == 'enable': + if flag.status == 'enable': assert flag.repository is None assert flag.arch is None @@ -100,7 +100,7 @@ def test_repo_flags_enable(flag_type, repo, arch): repoflags = RepoFlags(flag_type) repoflags.enable(repo=repo, arch=arch) for flag in repoflags.flags: - assert flag.setting == 'enable' + assert flag.status == 'enable' assert flag.repository == repo assert flag.arch == arch @@ -110,7 +110,7 @@ def test_repo_flags_disable(flag_type, repo, arch): repoflags = RepoFlags(flag_type) repoflags.disable(repo=repo, arch=arch) for flag in repoflags.flags: - assert flag.setting == 'disable' + assert flag.status == 'disable' assert flag.repository == repo assert flag.arch == arch |
