Skip to content

Commit 82a4624

Browse files
authored
fix(operations.brew): use enum value strings in brew.trust fixtures (pyinfra-dev#1887)
1 parent d207c0f commit 82a4624

7 files changed

Lines changed: 7 additions & 7 deletions

tests/operations/brew.trust/trust_already_trusted.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"args": [["foo", "bar", "baz"], "enum:BrewItemKind:casks", true],
2+
"args": [["foo", "bar", "baz"], "casks", true],
33
"facts": {
44
"brew.BrewTrusted": {
55
"casks": ["foo", "bar", "baz"],

tests/operations/brew.trust/trust_item_names_trusted_different_kind.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"args": [["foo", "bar", "baz"], "enum:BrewItemKind:casks", true],
2+
"args": [["foo", "bar", "baz"], "casks", true],
33
"facts": {
44
"brew.BrewTrusted": {
55
"casks": [],

tests/operations/brew.trust/trust_needs_trust.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"args": [["foo", "bar", "baz"], "enum:BrewItemKind:commands", true],
2+
"args": [["foo", "bar", "baz"], "commands", true],
33
"facts": {"brew.BrewTrusted": {"casks": [], "commands": ["bar"], "formulae": [], "taps": []}},
44
"commands": ["brew trust --command baz", "brew trust --command foo"],
55
"noop_description": "bar commands already trusted"

tests/operations/brew.trust/untrust_already_untrusted.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"args": [["foo", "bar", "baz"], "enum:BrewItemKind:formulae", false],
2+
"args": [["foo", "bar", "baz"], "formulae", false],
33
"facts": {"brew.BrewTrusted": {"casks": [], "commands": [], "formulae": [], "taps": []}},
44
"commands": [],
55
"noop_description": "bar, baz, foo formulae already untrusted"

tests/operations/brew.trust/untrust_currently_trusted.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"args": [["foo", "bar", "baz"], "enum:BrewItemKind:taps", false],
2+
"args": [["foo", "bar", "baz"], "taps", false],
33
"facts": {
44
"brew.BrewTrusted": {"casks": [], "commands": [], "formulae": [], "taps": ["foo", "baz"]}
55
},

tests/operations/brew.trust/zero_length_item_name.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"args": ["", "enum:BrewItemKind:taps", true],
2+
"args": ["", "taps", true],
33
"facts": {"brew.BrewTrusted": {"casks": [], "commands": [], "formulae": [], "taps": []}},
44
"commands": [],
55
"exception": {

tests/operations/brew.trust/zero_length_name_in_list_of_names.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"args": [["a", "", "c"], "enum:BrewItemKind:taps", true],
2+
"args": [["a", "", "c"], "taps", true],
33
"facts": {"brew.BrewTrusted": {"casks": [], "commands": [], "formulae": [], "taps": []}},
44
"commands": [],
55
"exception": {

0 commit comments

Comments
 (0)