blob: 413c8bf55e178edcce53d9df0537cb9d75ff947f [file] [log] [blame]
package rules_python
import (
"os"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestFindPython3(t *testing.T) {
path, err := FindPython3()
require.NoError(t, err)
assertFileExists(t, path)
}
func assertFileExists(t *testing.T, path string) {
fileInfo, err := os.Stat(path)
require.NoError(t, err)
assert.False(t, fileInfo.IsDir())
assert.NotZero(t, fileInfo.Size())
}