Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnester committed Jul 25, 2023
1 parent 8a3851f commit b79c522
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ func TestExecAndPassError(t *testing.T) {

func TestDetectPython(t *testing.T) {
pyExec = ""
py, err := detectExecutable(context.Background())
py, err := DetectExecutable(context.Background())
assert.NoError(t, err)
assert.Contains(t, py, "python3")
}

func TestDetectPythonCache(t *testing.T) {
pyExec = "abc"
py, err := detectExecutable(context.Background())
py, err := DetectExecutable(context.Background())
assert.NoError(t, err)
assert.Equal(t, "abc", py)
pyExec = ""
Expand Down Expand Up @@ -82,7 +82,7 @@ func TestPyInline(t *testing.T) {
}

func TestPyInlineStderr(t *testing.T) {
detectExecutable(context.Background())
DetectExecutable(context.Background())
inline := "import sys; sys.stderr.write('___msg___'); sys.exit(1)"
_, err := PyInline(context.Background(), inline)
assert.EqualError(t, err, "___msg___")
Expand Down

0 comments on commit b79c522

Please sign in to comment.