Skip to content

Commit

Permalink
Remove test to check if inherit flag is set outside a section
Browse files Browse the repository at this point in the history
  • Loading branch information
ep-linden committed Apr 20, 2022
1 parent 50c3aa2 commit f0895b6
Showing 1 changed file with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,32 +83,6 @@ def test__get_effective_config_for_project__with_invalid_inheritance_break_set_a
assert exception.value.code == EXIT_INVALID_INPUT


def test__get_effective_config_for_project__with_invalid_inheritance_break_set_at_group_level_outside_a_section():
config_yaml = """
---
projects_and_groups:
"some_group/*":
secret_variables:
first:
key: foo
value: bar
"some_group/my_project":
inherit: false
secret_variables:
second:
key: bizz
value: buzz
"""

with pytest.raises(SystemExit) as exception:
Configuration(config_string=config_yaml).get_effective_config_for_project(
"some_group/my_project"
)
assert exception.type == SystemExit
assert exception.value.code == EXIT_INVALID_INPUT


def test__get_effective_config_for_project__with_invalid_inheritance_break_set_at_project_level():
config_yaml = """
---
Expand Down

0 comments on commit f0895b6

Please sign in to comment.