MCPcopy Create free account
hub / github.com/TykTechnologies/tyk / TestFindPythonConfig

Function TestFindPythonConfig

dlpython/main_test.go:17–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

15}
16
17func TestFindPythonConfig(t *testing.T) {
18 _, err := FindPythonConfig("0.0")
19 t.Logf("Library path is %s", pythonLibraryPath)
20 if err == nil {
21 t.Fatal("Should fail when loading a nonexistent Python version")
22 }
23 pythonVersion, err := FindPythonConfig(testVersion)
24 t.Logf("Version is %s", pythonVersion)
25 t.Logf("Library path is %s", pythonLibraryPath)
26 if err != nil {
27 t.Fatalf("Couldn't find Python %s", testVersion)
28 }
29}
30
31func TestInit(t *testing.T) {
32 _, err := FindPythonConfig(testVersion)

Callers

nothing calls this directly

Calls 1

FindPythonConfigFunction · 0.85

Tested by

no test coverage detected