Browse Source

Add usage test for use-system-flag

Adds a test to ensure that the new use-system-flag declaration is
handled correctly in a YAML config definition.

Change-Id: I551531e20f6b13b60314f4d1d86ac60c7aca9761
Michael Holloway 8 months ago
parent
commit
dc59119bf0
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      config/python_test.go

+ 3
- 1
config/python_test.go View File

@@ -20,7 +20,8 @@ func TestPythonConfigYAMLMerge(t *testing.T) {
20 20
       test:
21 21
         python:
22 22
           version: python3
23
-          requirements: [other-requirements.txt, requirements-test.txt]`))
23
+          requirements: [other-requirements.txt, requirements-test.txt]
24
+          use-system-flag: true`))
24 25
 
25 26
 	if assert.NoError(t, err) {
26 27
 		assert.Equal(t, []string{"requirements.txt"}, cfg.Python.Requirements)
@@ -31,6 +32,7 @@ func TestPythonConfigYAMLMerge(t *testing.T) {
31 32
 		if assert.NoError(t, err) {
32 33
 			assert.Equal(t, []string{"other-requirements.txt", "requirements-test.txt"}, variant.Python.Requirements)
33 34
 			assert.Equal(t, "python3", variant.Python.Version)
35
+			assert.Equal(t, true, variant.Python.UseSystemFlag)
34 36
 		}
35 37
 	}
36 38
 }

Loading…
Cancel
Save